You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

64 lines
1.7 KiB

  1. /**************************************************************************\
  2. *
  3. * Copyright (c) 1998-2000, Microsoft Corp. All Rights Reserved.
  4. *
  5. * Module Name:
  6. *
  7. * GdiplusColorMatrix.h
  8. *
  9. * Abstract:
  10. *
  11. * Class for color adjustment object passed to Graphics.DrawImage
  12. *
  13. \**************************************************************************/
  14. #ifndef _GDIPLUSCOLORMATRIX_H
  15. #define _GDIPLUSCOLORMATRIX_H
  16. //----------------------------------------------------------------------------
  17. // Color matrix
  18. //----------------------------------------------------------------------------
  19. struct ColorMatrix
  20. {
  21. REAL m[5][5];
  22. };
  23. //----------------------------------------------------------------------------
  24. // Color Matrix flags
  25. //----------------------------------------------------------------------------
  26. enum ColorMatrixFlags
  27. {
  28. ColorMatrixFlagsDefault = 0,
  29. ColorMatrixFlagsSkipGrays = 1,
  30. ColorMatrixFlagsAltGray = 2
  31. };
  32. //----------------------------------------------------------------------------
  33. // Color Adjust Type
  34. //----------------------------------------------------------------------------
  35. enum ColorAdjustType
  36. {
  37. ColorAdjustTypeDefault,
  38. ColorAdjustTypeBitmap,
  39. ColorAdjustTypeBrush,
  40. ColorAdjustTypePen,
  41. ColorAdjustTypeText,
  42. ColorAdjustTypeCount, // must be immediately after all the individual ones
  43. ColorAdjustTypeAny // internal use: for querying if any type has recoloring
  44. };
  45. //----------------------------------------------------------------------------
  46. // Color Map
  47. //----------------------------------------------------------------------------
  48. struct ColorMap
  49. {
  50. Color oldColor;
  51. Color newColor;
  52. };
  53. #endif