LinearGradientBrush.cs 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. //
  2. // System.Drawing.Drawing2D.LinearGradientBrush.cs
  3. //
  4. // Author:
  5. // Dennis Hayes ([email protected])
  6. //
  7. // (C) 2002/3 Ximian, Inc
  8. //
  9. using System;
  10. namespace System.Drawing.Drawing2D
  11. {
  12. /// <summary>
  13. /// Summary description for LinearGradientBrush.
  14. /// </summary>
  15. public sealed class LinearGradientBrush : Brush
  16. {
  17. private Color[] linearColors_;
  18. //Constructors.
  19. public LinearGradientBrush(Point point1, Point point2, Color color1, Color color2) {
  20. linearColors_ = new Color[] { color1, color2 };
  21. }
  22. public LinearGradientBrush(PointF point1, PointF point2, Color color1, Color color2) {
  23. linearColors_ = new Color[] { color1, color2 };
  24. }
  25. public LinearGradientBrush(Rectangle rect, Color color1, Color color2, LinearGradientMode linearGradientMode) {
  26. linearColors_ = new Color[] { color1, color2 };
  27. }
  28. //public Properties
  29. public Blend Blend {
  30. get {
  31. throw new NotImplementedException ();
  32. }
  33. set {
  34. }
  35. }
  36. public bool GammaCorrection {
  37. get {
  38. throw new NotImplementedException ();
  39. }
  40. set {
  41. }
  42. }
  43. public ColorBlend InterpolationColors {
  44. get {
  45. throw new NotImplementedException ();
  46. }
  47. set {
  48. }
  49. }
  50. public Color [] LinearColors {
  51. get {
  52. return linearColors_;
  53. }
  54. set {
  55. linearColors_[0] = value[0];
  56. linearColors_[1] = value[1];
  57. }
  58. }
  59. public RectangleF Rectange {
  60. get {
  61. throw new NotImplementedException ();
  62. }
  63. }
  64. public Matrix Transform {
  65. get {
  66. throw new NotImplementedException ();
  67. }
  68. set {
  69. }
  70. }
  71. public WrapMode WrapMode {
  72. get {
  73. throw new NotImplementedException ();
  74. }
  75. set {
  76. }
  77. }
  78. // Public Methods
  79. public override object Clone(){
  80. throw new NotImplementedException ();
  81. }
  82. public void MultiplyTransform(Matrix matrix){
  83. throw new NotImplementedException ();
  84. }
  85. public void MultiplyTransform(Matrix matrix, MatrixOrder order){
  86. throw new NotImplementedException ();
  87. }
  88. public void ResetTransform(){
  89. throw new NotImplementedException ();
  90. }
  91. public void RotateTransform(float angle, MatrixOrder order){
  92. throw new NotImplementedException ();
  93. }
  94. public void RotateTransform(float angle){
  95. throw new NotImplementedException ();
  96. }
  97. }
  98. }