Leaked source code of windows server 2003
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.

70 lines
1.8 KiB

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