ColorBlend.cs 792 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // System.Drawing.Drawing2D.ColorBlend.cs
  3. //
  4. // Authors:
  5. // Dennis Hayes ([email protected])
  6. // Ravindra ([email protected])
  7. //
  8. // (C) 2002/3 Ximian, Inc. http://www.ximian.com
  9. // (C) 2004 Novell, Inc. http://www.novell.com
  10. //
  11. using System;
  12. namespace System.Drawing.Drawing2D
  13. {
  14. public sealed class ColorBlend
  15. {
  16. private float [] positions;
  17. private Color [] colors;
  18. public ColorBlend ()
  19. {
  20. positions = new float [1];
  21. colors = new Color [1];
  22. }
  23. public ColorBlend (int count)
  24. {
  25. positions = new float [count];
  26. colors = new Color [count];
  27. }
  28. public Color [] Colors {
  29. get {
  30. return colors;
  31. }
  32. set {
  33. colors = value;
  34. }
  35. }
  36. public float [] Positions {
  37. get {
  38. return positions;
  39. }
  40. set {
  41. positions = value;
  42. }
  43. }
  44. }
  45. }