KrisLibrary  1.0.0
gdi.h
1 #ifndef IMAGE_GDI_H
2 #define IMAGE_GDI_H
3 
4 #ifdef NOMINMAX
5 #undef NOMINMAX
6 #endif // NOMINMAX
7 #include <windows.h>
8 #include <GdiPlus.h>
9 #include "image.h"
10 
11 //fmtOut gets the closest possible GDI+ format to be written to the image
12 Image::PixelFormat GdiToImagePixelFormat(Gdiplus::PixelFormat fmt, Gdiplus::PixelFormat& fmtOut);
13 Gdiplus::PixelFormat ImageGdiPixelFormat(Image::PixelFormat fmt);
14 void GdiBitmapToImage(Gdiplus::Bitmap& bit, Image& img);
15 Gdiplus::Bitmap* ImageToGdiBitmap(const Image& img);
16 
17 bool ExportImageGDIPlus(const char* fn, Image& img);
18 
19 #endif
Definition: image.h:6