|
Data Structures |
struct | _imImage |
| Image Structure Definition. More...
|
Defines |
#define | cdPutBitmap(_image, _x, _y, _w, _h, _xmin, _xmax, _ymin, _ymax) |
Typedefs |
typedef _imImage | imImage |
Functions |
imImage * | imImageCreate (int width, int height, int color_space, int data_type) |
imImage * | imImageInit (int width, int height, int color_space, int data_type, void *data_buffer, long *palette, int palette_count) |
void | imImageDestroy (imImage *image) |
void | imImageReshape (imImage *image, int width, int height) |
void | imImageCopy (const imImage *src_image, imImage *dst_image) |
void | imImageCopyData (const imImage *src_image, imImage *dst_image) |
imImage * | imImageDuplicate (const imImage *image) |
imImage * | imImageClone (const imImage *image) |
void | imImageSetAttribute (imImage *image, const char *attrib, int data_type, int count, const void *data) |
const void * | imImageGetAttribute (const imImage *image, const char *attrib, int *data_type, int *count) |
void | imImageGetAttributeList (const imImage *image, char **attrib, int *attrib_count) |
void | imImageClear (imImage *image) |
int | imImageIsBitmap (const imImage *image) |
void | imImageSetPalette (imImage *image, long *palette, int palette_count) |
void | imImageCopyAttributes (const imImage *src_image, imImage *dst_image) |
int | imImageMatchSize (const imImage *image1, const imImage *image2) |
int | imImageMatchColor (const imImage *image1, const imImage *image2) |
int | imImageMatchDataType (const imImage *image1, const imImage *image2) |
int | imImageMatchColorSpace (const imImage *image1, const imImage *image2) |
int | imImageMatch (const imImage *image1, const imImage *image2) |
imImage * | imFileLoadImage (imFile *ifile, int index, int *error) |
imImage * | imFileLoadBitmap (imFile *ifile, int index, int *error) |
int | imFileSaveImage (imFile *ifile, const imImage *image) |
imImage * | imImageLoad (const char *file_name, int index, int *error) |
imImage * | imImageLoadBitmap (const char *file_name, int index, int *error) |
void | imImageSetBinary (imImage *image) |
void | imImageMakeBinary (imImage *image) |
|
Value: { \
if (_image->color_space == IM_RGB) \
cdPutImageRectRGB(_image->width, _image->height, \
(unsigned char*)_image->data[0], \
(unsigned char*)_image->data[1], \
(unsigned char*)_image->data[2], \
_x, _y, _w, _h, _xmin, _xmax, _ymin, _ymax); \
else \
cdPutImageRectMap(_image->width, _image->height, \
(unsigned char*)_image->data[0], _image->palette, \
_x, _y, _w, _h, _xmin, _xmax, _ymin, _ymax); \
}
Utility macro to draw the image in a CD library canvas. Works only for data_type IM_BYTE, and color spaces: IM_RGB, IM_MAP, IMGRAY and IM_BINARY. |