00001
00002 #ifndef COMPAT_IMAGE_HPP
00003 #define COMPAT_IMAGE_HPP
00004
00005 #include "kernel/jafarException.hpp"
00006 #include "image/Image.hpp"
00007
00008 namespace jafar {
00009
00010 namespace klt {
00011
00012 struct CompatTreatment
00013 {
00014 char alloc;
00015
00016 jafar::image::Image *temp;
00017
00018 CompatTreatment() :
00019 alloc(0),
00020 temp(NULL)
00021 { };
00022 };
00023
00038 unsigned char* compatImage(jafar::image::Image &image_, CompatTreatment &treatment,
00039 int zone_x=-1, int zone_y=-1, int zone_w=-1, int zone_h=-1);
00040
00051 void destroyCompatImage(unsigned char* image_ptr, CompatTreatment &treatment);
00052
00053 }
00054
00055 }
00056
00057 #endif