magnification.h 821 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the mingw-w64 runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  5. */
  6. #ifndef _INC_MAGNIFIER
  7. #define _INC_MAGNIFIER
  8. #include <winapifamily.h>
  9. #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  10. #include <wincodec.h>
  11. #define MW_FILTERMODE_EXCLUDE 0
  12. #define MW_FILTERMODE_INCLUDE 1
  13. typedef struct tagMAGTRANSFORM {
  14. float v[3][3];
  15. } MAGTRANSFORM, *PMAGTRANSFORM;
  16. typedef struct tagMAGIMAGEHEADER {
  17. UINT width;
  18. UINT height;
  19. WICPixelFormatGUID format;
  20. UINT stride;
  21. UINT offset;
  22. SIZE_T cbSize;
  23. } MAGIMAGEHEADER, *PMAGIMAGEHEADER;
  24. typedef struct tagMAGCOLOREFFECT {
  25. float transform[5][5];
  26. } MAGCOLOREFFECT, *PMAGCOLOREFFECT;
  27. #endif
  28. #endif