Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRavindra <ravindra@mono-cvs.ximian.com>2004-03-22 15:21:04 +0300
committerRavindra <ravindra@mono-cvs.ximian.com>2004-03-22 15:21:04 +0300
commit0147ab6cff269ed33da2495ba3ea1485cc811cfd (patch)
treeab399f03dff55285064151420e46101c603e2869 /mcs/class/System.Drawing/System.Drawing.Drawing2D/PathGradientBrush.cs
parent5c37570079de79c3f8e27e5dbddedbb3fbd89339 (diff)
Implementing LinearGradientBrush.cs and fixing PathGradientBrush.cs.
svn path=/trunk/mcs/; revision=24413
Diffstat (limited to 'mcs/class/System.Drawing/System.Drawing.Drawing2D/PathGradientBrush.cs')
-rw-r--r--mcs/class/System.Drawing/System.Drawing.Drawing2D/PathGradientBrush.cs23
1 files changed, 12 insertions, 11 deletions
diff --git a/mcs/class/System.Drawing/System.Drawing.Drawing2D/PathGradientBrush.cs b/mcs/class/System.Drawing/System.Drawing.Drawing2D/PathGradientBrush.cs
index 1f8b582110b..948a87654e1 100644
--- a/mcs/class/System.Drawing/System.Drawing.Drawing2D/PathGradientBrush.cs
+++ b/mcs/class/System.Drawing/System.Drawing.Drawing2D/PathGradientBrush.cs
@@ -26,7 +26,7 @@ namespace System.Drawing.Drawing2D
PointF center;
PointF focus;
RectangleF rectangle;
- Color[] surroundColors;
+ Color [] surroundColors;
ColorBlend interpolationColors;
Matrix transform;
WrapMode wrapMode;
@@ -44,24 +44,26 @@ namespace System.Drawing.Drawing2D
GDIPlus.CheckStatus (status);
}
- public PathGradientBrush (Point[] points) : this (points, WrapMode.Clamp)
+ public PathGradientBrush (Point [] points) : this (points, WrapMode.Clamp)
{
}
- public PathGradientBrush (PointF[] points) : this (points, WrapMode.Clamp)
+ public PathGradientBrush (PointF [] points) : this (points, WrapMode.Clamp)
{
}
- public PathGradientBrush (Point[] points, WrapMode wrapMode)
+ public PathGradientBrush (Point [] points, WrapMode wrapMode)
{
Status status = GDIPlus.GdipCreatePathGradientI (points, points.Length, wrapMode, out nativeObject);
GDIPlus.CheckStatus (status);
- status = GDIPlus.GdipGetPathGradientRect (nativeObject, out rectangle);
+ Rectangle rect;
+ status = GDIPlus.GdipGetPathGradientRectI (nativeObject, out rect);
GDIPlus.CheckStatus (status);
+ rectangle = (RectangleF) rect;
}
- public PathGradientBrush (PointF[] points, WrapMode wrapMode)
+ public PathGradientBrush (PointF [] points, WrapMode wrapMode)
{
Status status = GDIPlus.GdipCreatePathGradient (points, points.Length, wrapMode, out nativeObject);
GDIPlus.CheckStatus (status);
@@ -121,8 +123,8 @@ namespace System.Drawing.Drawing2D
return interpolationColors;
}
set {
- Color[] colors = value.Colors;
- int[] blend = new int [colors.Length];
+ Color [] colors = value.Colors;
+ int [] blend = new int [colors.Length];
for (int i = 0; i < colors.Length; i++)
blend [i] = colors [i].ToArgb ();
@@ -134,18 +136,17 @@ namespace System.Drawing.Drawing2D
public RectangleF Rectangle {
get {
-
return rectangle;
}
}
- public Color[] SurroundColors {
+ public Color [] SurroundColors {
get {
return surroundColors;
}
set {
int length = value.Length;
- int[] colors = new int [length];
+ int [] colors = new int [length];
for (int i = 0; i < length; i++)
colors [i] = value [i].ToArgb ();