ColorPalette.cs 798 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //
  2. // System.Drawing.Imaging.ColorPalette.cs
  3. //
  4. // (C) 2002 Ximian, Inc. http://www.ximian.com
  5. //
  6. // Author:
  7. // Miguel de Icaza ([email protected]
  8. //
  9. using System;
  10. namespace System.Drawing.Imaging
  11. {
  12. public sealed class ColorPalette {
  13. // 0x1: the color values in the array contain alpha information
  14. // 0x2: the color values are grayscale values.
  15. // 0x4: the colors in the array are halftone values.
  16. int flags;
  17. Color [] entries;
  18. //
  19. // There is no public constructor, this will be used somewhere in the
  20. // drawing code
  21. //
  22. internal ColorPalette ()
  23. {
  24. flags = 0;
  25. entries = new Color [0];
  26. }
  27. public Color [] Entries {
  28. get {
  29. return entries;
  30. }
  31. }
  32. public int Flags {
  33. get {
  34. return flags;
  35. }
  36. }
  37. }
  38. }