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.

47 lines
1.3 KiB

  1. /**************************************************************************\
  2. *
  3. * Copyright (c) 2000 Microsoft Corporation
  4. *
  5. * Abstract:
  6. *
  7. * Contains the definiton of the DpImageAttributes structure which
  8. * stores state needed by drivers for DrawImage.
  9. *
  10. * Notes:
  11. *
  12. * History:
  13. *
  14. * 3/9/2000 asecchia
  15. * Created it.
  16. *
  17. \**************************************************************************/
  18. #ifndef _DPIMAGEATTRIBUTES_HPP
  19. #define _DPIMAGEATTRIBUTES_HPP
  20. //--------------------------------------------------------------------------
  21. // Represent imageAttributes information
  22. //--------------------------------------------------------------------------
  23. struct DpImageAttributes
  24. {
  25. WrapMode wrapMode; // specifies how to handle edge conditions
  26. ARGB clampColor; // edge color for use with WrapModeClamp
  27. BOOL srcRectClamp; // Do we clamp to the srcRect (true) or srcBitmap (false)
  28. BOOL ICMMode; // TRUE = ICM on, FALSE = no ICM
  29. DpImageAttributes(WrapMode wrap = WrapModeClamp,
  30. ARGB color = (ARGB)0x00000000,
  31. BOOL clamp = FALSE,
  32. BOOL icmMode = FALSE)
  33. {
  34. wrapMode = wrap;
  35. clampColor = color;
  36. srcRectClamp = clamp;
  37. ICMMode = icmMode;
  38. }
  39. };
  40. #endif