1234567891011121314151617181920212223242526 |
- #ifndef NULLSOFT_MEIDALIBRARY_GRAPHICS_HEADER
- #define NULLSOFT_MEIDALIBRARY_GRAPHICS_HEADER
- #if defined(_MSC_VER) && (_MSC_VER >= 1020)
- #pragma once
- #endif
- #include <windows.h>
- typedef struct _COLOR24 COLOR24;
- typedef void (*BMPFILTERPROC)(const COLOR24*, const COLOR24*, COLOR24*);
- HBITMAP CreateBitmapMask(HBITMAP originalBmp, COLORREF transColor);
- HBITMAP CreateBitmapMask(HBITMAP originalBmp, int cx, int cy);
- HBITMAP CreateBitmapMask(HBITMAP originalBmp, COLORREF transColor, int cx, int cy);
- HBITMAP ConvertTo24bpp(HBITMAP bmp, int bpp=24);
- HBITMAP PatchBitmapColors24(HBITMAP bitmap, COLORREF color1, COLORREF color2, BMPFILTERPROC filterProc);
- void Filter1(const COLOR24 *color1, const COLOR24 *color2, COLOR24 *pixel);
- void Filter2(const COLOR24 *color1, const COLOR24 *color2, COLOR24 *pixel);
- #endif
|