LinearGradientBrush.cs 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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[] linear_colors;
  18. //Constructors.
  19. public LinearGradientBrush (Point point1, Point point2, Color color1, Color color2) {
  20. linear_colors = new Color[] { color1, color2 };
  21. }
  22. public LinearGradientBrush (PointF point1, PointF point2, Color color1, Color color2) {
  23. linear_colors = new Color[] { color1, color2 };
  24. }
  25. public LinearGradientBrush (Rectangle rect, Color color1, Color color2, LinearGradientMode linearGradientMode) {
  26. linear_colors = new Color[] { color1, color2 };
  27. }
  28. //public Properties
  29. [MonoTODO()]
  30. public Blend Blend {
  31. get {
  32. throw new NotImplementedException ();
  33. }
  34. set {
  35. }
  36. }
  37. [MonoTODO()]
  38. public bool GammaCorrection {
  39. get {
  40. throw new NotImplementedException ();
  41. }
  42. set {
  43. }
  44. }
  45. [MonoTODO()]
  46. public ColorBlend InterpolationColors {
  47. get {
  48. throw new NotImplementedException ();
  49. }
  50. set {
  51. }
  52. }
  53. public Color [] LinearColors {
  54. get {
  55. return linear_colors;
  56. }
  57. set {
  58. linear_colors[0] = value[0];
  59. linear_colors[1] = value[1];
  60. }
  61. }
  62. [MonoTODO()]
  63. public RectangleF Rectangle {
  64. get {
  65. throw new NotImplementedException ();
  66. }
  67. }
  68. [MonoTODO()]
  69. public Matrix Transform {
  70. get {
  71. throw new NotImplementedException ();
  72. }
  73. set {
  74. }
  75. }
  76. [MonoTODO()]
  77. public WrapMode WrapMode {
  78. get {
  79. throw new NotImplementedException ();
  80. }
  81. set {
  82. }
  83. }
  84. // Public Methods
  85. [MonoTODO()]
  86. public override object Clone (){
  87. throw new NotImplementedException ();
  88. }
  89. [MonoTODO()]
  90. public void MultiplyTransform (Matrix matrix){
  91. throw new NotImplementedException ();
  92. }
  93. [MonoTODO()]
  94. public void MultiplyTransform (Matrix matrix, MatrixOrder order){
  95. throw new NotImplementedException ();
  96. }
  97. [MonoTODO()]
  98. public void ResetTransform (){
  99. throw new NotImplementedException ();
  100. }
  101. [MonoTODO()]
  102. public void RotateTransform (float angle, MatrixOrder order){
  103. throw new NotImplementedException ();
  104. }
  105. [MonoTODO()]
  106. public void RotateTransform (float angle){
  107. throw new NotImplementedException ();
  108. }
  109. }
  110. }