Go to the documentation of this file.
23 #define MAX_IMAGE_SIZE 10000
30 #define SUPPORTEDSTRING_JPEG "/JPEG"
32 #define SUPPORTEDSTRING_JPEG ""
35 #define SUPPORTEDSTRING_PNG "/PNG"
37 #define SUPPORTEDSTRING_PNG ""
40 #define SUPPORTEDSTRING_TIFF "/TIFF"
42 #define SUPPORTEDSTRING_TIFF ""
46 #define IMAGEIO_U8 0x0000
47 #define IMAGEIO_SINGLE 0x0001
48 #define IMAGEIO_FLOAT IMAGEIO_SINGLE
49 #define IMAGEIO_DOUBLE 0x0002
50 #define IMAGEIO_STRIP_ALPHA 0x0010
51 #define IMAGEIO_BGRFLIP 0x0020
52 #define IMAGEIO_AFLIP 0x0040
53 #define IMAGEIO_GRAYSCALE 0x0080
54 #define IMAGEIO_GRAY IMAGEIO_GRAYSCALE
55 #define IMAGEIO_PLANAR 0x0100
56 #define IMAGEIO_COLUMNMAJOR 0x0200
57 #define IMAGEIO_RGB (IMAGEIO_STRIP_ALPHA)
58 #define IMAGEIO_BGR (IMAGEIO_STRIP_ALPHA | IMAGEIO_BGRFLIP)
59 #define IMAGEIO_RGBA 0x0000
60 #define IMAGEIO_BGRA (IMAGEIO_BGRFLIP)
61 #define IMAGEIO_ARGB (IMAGEIO_AFLIP)
62 #define IMAGEIO_ABGR (IMAGEIO_BGRFLIP | IMAGEIO_AFLIP)
75 #define READIMAGE_FORMATS_SUPPORTED \
76 "BMP" SUPPORTEDSTRING_JPEG SUPPORTEDSTRING_PNG SUPPORTEDSTRING_TIFF
79 #define WRITEIMAGE_FORMATS_SUPPORTED \
80 "BMP" SUPPORTEDSTRING_JPEG SUPPORTEDSTRING_PNG SUPPORTEDSTRING_TIFF
82 #ifndef _CRT_SECURE_NO_WARNINGS
84 #define _CRT_SECURE_NO_WARNINGS
90 const char *FileName,
unsigned Format);
92 int WriteImage(
void *Image,
int Width,
int Height,
93 const char *FileName,
unsigned Format,
int Quality);