Blend.cs 841 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //
  2. // System.Drawing.Drawing2D.Blend.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. /// <summary>
  15. /// Summary description for Blend.
  16. /// </summary>
  17. public sealed class Blend
  18. {
  19. private float [] positions;
  20. private float [] factors;
  21. public Blend ()
  22. {
  23. positions = new float [1];
  24. factors = new float [1];
  25. }
  26. public Blend (int count)
  27. {
  28. positions = new float [count];
  29. factors = new float [count];
  30. }
  31. public float [] Factors {
  32. get {
  33. return factors;
  34. }
  35. set {
  36. factors = value;
  37. }
  38. }
  39. public float [] Positions {
  40. get {
  41. return positions;
  42. }
  43. set {
  44. positions = value;
  45. }
  46. }
  47. }
  48. }