graphics.h 1.1 KB

1234567891011121314151617181920212223
  1. #ifndef NULLOSFT_ONLINEMEDIA_GRAPHICS_HEADER
  2. #define NULLOSFT_ONLINEMEDIA_GRAPHICS_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include <wtypes.h>
  7. INT GetColorDistance(COLORREF rgb1, COLORREF rgb2);
  8. COLORREF GetDarkerColor(COLORREF rgb1, COLORREF rgb2);
  9. COLORREF BlendColors(COLORREF rgbTop, COLORREF rgbBottom, INT alpha);
  10. BOOL Image_Colorize(BYTE *pPixels, LONG cx, LONG cy, WORD bpp, COLORREF rgbBk, COLORREF rgbFg, BOOL removeAlpha);
  11. BOOL Image_BlendOnColorEx(BYTE *pPixels, INT bitmapCX, INT bitmapCY, LONG x, LONG y, LONG cx, LONG cy, WORD bpp, BOOL premult, COLORREF rgb);
  12. BOOL Image_BlendOnColor(HBITMAP hbmp, RECT *prcPart, BOOL premult, COLORREF rgb);
  13. BOOL Image_Premultiply(BYTE *pPixels, LONG cx, LONG cy);
  14. BOOL Image_AlphaBlend(HDC hdcDest, int nXOriginDest, int nYOriginDest, int nWidthDest, int nHeightDest, HDC hdcSrc, int nXOriginSrc, int nYOriginSrc, int nWidthSrc, int nHeightSrc, BLENDFUNCTION blendFunction);
  15. HBITMAP Image_AnimateRotation(HDC hdc, HBITMAP bitmapFrame, INT frameCount, COLORREF rgbBk, BOOL fKeepSize);
  16. #endif //NULLOSFT_ONLINEMEDIA_GRAPHICS_HEADER