giimage.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef GIIMAGE_H
00029 #define GIIMAGE_H
00030
00031 #include <cxtypes.h>
00032 #include <cxstring.h>
00033
00034 #include <cpl_macros.h>
00035 #include <cpl_type.h>
00036 #include <cpl_image.h>
00037 #include <cpl_propertylist.h>
00038 #include <cpl_frameset.h>
00039
00040 #include <giutils.h>
00041
00042
00043 #ifdef __cplusplus
00044 extern "C" {
00045 #endif
00046
00047 typedef struct GiImage GiImage;
00048
00049
00050 GiImage *giraffe_image_new(cpl_type type);
00051 GiImage *giraffe_image_create(cpl_type type, cxint nx, cxint ny);
00052 GiImage *giraffe_image_duplicate(const GiImage *image);
00053 void giraffe_image_delete(GiImage *self);
00054
00055 cpl_image *giraffe_image_get(const GiImage *self);
00056 cxint giraffe_image_set(GiImage *self, cpl_image *image);
00057
00058 cpl_propertylist *giraffe_image_get_properties(const GiImage *self);
00059 cxint giraffe_image_set_properties(GiImage *self,
00060 cpl_propertylist *properties);
00061
00062 cxint giraffe_image_copy_matrix(GiImage *self, cpl_matrix *matrix);
00063
00064 cxint giraffe_image_load_pixels(GiImage *self, const cxchar *filename,
00065 cxint position, cxint plane);
00066 cxint giraffe_image_load_properties(GiImage *self, const cxchar *filename,
00067 cxint position);
00068
00069 cxint giraffe_image_load(GiImage *self, const cxchar *filename,
00070 cxint position);
00071 cxint giraffe_image_save(GiImage *self, const cxchar *filename);
00072
00073
00074 cxint giraffe_image_paste(GiImage *self, const GiImage *image, cxint x,
00075 cxint y, cxbool clip);
00076
00077 void giraffe_image_print(GiImage *self);
00078
00079 cxint giraffe_image_add_info(GiImage *, const GiRecipeInfo *,
00080 const cpl_frameset *);
00081
00082 #ifdef __cplusplus
00083 }
00084 #endif
00085
00086 #endif