Class RadGdiGraphics
Implements functionality for drawing GDI+ graphics.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.Paint
Assembly: Telerik.WinControls.dll
Syntax
public class RadGdiGraphics : IGraphics, IDisposable
Constructors
RadGdiGraphics(Graphics)
Initializes a new instance of RadGdiGraphics class using GDI graphics context.
Declaration
public RadGdiGraphics(Graphics graphics)
Parameters
System.
|
Fields
GdiMaximumDrawRectangleLimit
Declaration
public static readonly int GdiMaximumDrawRectangleLimit
Field Value
System.
|
GdiMinimumDrawRectangleLimit
Declaration
public static readonly int GdiMinimumDrawRectangleLimit
Field Value
System.
|
GdiStringLengthLimit
Declaration
public static readonly int GdiStringLengthLimit
Field Value
System.
|
Properties
ClipRectangle
Declaration
public Rectangle ClipRectangle { get; set; }
Property Value
System.
|
Implements
Graphics
Gets or sets current GDI+ graphics context.
Declaration
public Graphics Graphics { get; set; }
Property Value
System.
|
MeasurementGraphics
Declaration
public static Graphics MeasurementGraphics { get; }
Property Value
System.
|
Opacity
Declaration
public double Opacity { get; }
Property Value
System.
|
Implements
UnderlayGraphics
Declaration
public object UnderlayGraphics { get; }
Property Value
System.
|
Implements
Methods
ChangeOpacity(Double)
Declaration
public void ChangeOpacity(double opacity)
Parameters
System.
|
Implements
ChangeSmoothingMode(SmoothingMode)
Declaration
public virtual void ChangeSmoothingMode(SmoothingMode smoothingMode)
Parameters
System.
|
Implements
CheckValidPath(GraphicsPath)
Declaration
protected bool CheckValidPath(GraphicsPath path)
Parameters
System.
|
Returns
System.
|
CheckValidRectangle(Rectangle)
Declaration
protected bool CheckValidRectangle(Rectangle rectangle)
Parameters
System.
|
Returns
System.
|
CheckValidRectangle(RectangleF)
Declaration
protected bool CheckValidRectangle(RectangleF rectangle)
Parameters
System.
|
Returns
System.
|
CreateBitmapMask(Color, Bitmap)
Declaration
public Bitmap CreateBitmapMask(Color maskColor, Bitmap bitmap)
Parameters
System.
|
System.
|
Returns
System.
|
Implements
Destroy()
Disposes the object.
Declaration
public void Destroy()
Dispose()
Disposes the GDI+ graphics context.
Declaration
public void Dispose()
Implements
DrawBitmap(Image, Int32, Int32)
Declaration
public virtual void DrawBitmap(Image image, int x, int y)
Parameters
System.
|
System.
|
System.
|
Implements
DrawBitmap(Image, Int32, Int32, Double)
Declaration
public virtual void DrawBitmap(Image image, int x, int y, double opacity)
Parameters
System.
|
System.
|
System.
|
System.
|
Implements
DrawBitmap(Image, Int32, Int32, Int32, Int32)
Declaration
public virtual void DrawBitmap(Image image, int x, int y, int width, int height)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
Implements
DrawBitmap(Image, Int32, Int32, Int32, Int32, Double)
Declaration
public virtual void DrawBitmap(Image image, int x, int y, int width, int height, double opacity)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
Implements
DrawBlurShadow(GraphicsPath, Rectangle, Single, Color)
Declaration
public void DrawBlurShadow(GraphicsPath path, Rectangle r, float offset, Color color)
Parameters
System.
|
System.
|
System.
|
System.
|
Implements
DrawBorder(RectangleF, IBorderElement)
Draws a border specified by rectangle structure, IBorderElement.
Declaration
public virtual void DrawBorder(RectangleF rectangle, IBorderElement borderElement)
Parameters
System.
|
IBorder
|
Implements
DrawCustomGradientPath(GraphicsPath, GraphicsPath, Color, Color[], PenAlignment, Single)
Declaration
public void DrawCustomGradientPath(GraphicsPath path, GraphicsPath gradientPath, Color color, Color[] gradientColors, PenAlignment penAlignment, float penWidth)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
Implements
DrawCustomGradientPath(GraphicsPath, GraphicsPath, Color, Color[], PenAlignment, Single, DashStyle)
Declaration
public void DrawCustomGradientPath(GraphicsPath path, GraphicsPath gradientPath, Color color, Color[] gradientColors, PenAlignment penAlignment, float penWidth, DashStyle dashStyle)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
DrawCustomGradientPath(GraphicsPath, GraphicsPath, Color, Color[], PenAlignment, Single, DashStyle, Single[])
Declaration
public void DrawCustomGradientPath(GraphicsPath path, GraphicsPath gradientPath, Color color, Color[] gradientColors, PenAlignment penAlignment, float penWidth, DashStyle dashStyle, float[] dashPattern)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
DrawCustomGradientRectangle(Rectangle, GraphicsPath, Color, Color[], PenAlignment, Single)
Declaration
public virtual void DrawCustomGradientRectangle(Rectangle rectangle, GraphicsPath path, Color color, Color[] gradientColors, PenAlignment penAlignment, float penWidth)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
Implements
DrawCustomGradientRectangle(RectangleF, GraphicsPath, Color, Color[], PenAlignment, Single)
Declaration
public virtual void DrawCustomGradientRectangle(RectangleF rectangle, GraphicsPath path, Color color, Color[] gradientColors, PenAlignment penAlignment, float penWidth)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
Implements
DrawCustomGradientRectangle(RectangleF, GraphicsPath, Color, Color[], PenAlignment, Single, DashStyle)
Declaration
public virtual void DrawCustomGradientRectangle(RectangleF rectangle, GraphicsPath path, Color color, Color[] gradientColors, PenAlignment penAlignment, float penWidth, DashStyle dashStyle)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
Implements
DrawCustomGradientRectangle(RectangleF, GraphicsPath, Color, Color[], PenAlignment, Single, DashStyle, Single[])
Declaration
public virtual void DrawCustomGradientRectangle(RectangleF rectangle, GraphicsPath path, Color color, Color[] gradientColors, PenAlignment penAlignment, float penWidth, DashStyle dashStyle, float[] dashPattern)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
Implements
DrawEllipse(Rectangle, Color)
Declaration
public virtual void DrawEllipse(Rectangle rectangle, Color color)
Parameters
System.
|
System.
|
Implements
DrawImage(Point, Image, Boolean)
Declaration
public virtual void DrawImage(Point point, Image image, bool enabled)
Parameters
System.
|
System.
|
System.
|
Implements
DrawImage(Rectangle, Image, ContentAlignment, Boolean)
Declaration
public virtual void DrawImage(Rectangle rectangle, Image image, ContentAlignment alignment, bool enabled)
Parameters
System.
|
System.
|
System.
|
System.
|
Implements
DrawLine(Color, DashStyle, Int32, Int32, Int32, Int32)
Declaration
public virtual void DrawLine(Color color, DashStyle dashStyle, int x1, int y1, int x2, int y2)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
Implements
DrawLine(Color, DashStyle, Int32, Int32, Int32, Int32, Single)
Declaration
public virtual void DrawLine(Color color, DashStyle dashStyle, int x1, int y1, int x2, int y2, float width)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
Implements
DrawLine(Color, DashStyle, Single[], Int32, Int32, Int32, Int32)
Declaration
public virtual void DrawLine(Color color, DashStyle dashStyle, float[] dashPattern, int x1, int y1, int x2, int y2)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
DrawLine(Color, Int32, Int32, Int32, Int32)
Declaration
public virtual void DrawLine(Color color, int x1, int y1, int x2, int y2)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
Implements
DrawLine(Color, Single, Single, Single, Single)
Declaration
public virtual void DrawLine(Color color, float x1, float y1, float x2, float y2)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
Implements
DrawLine(Color, Single, Single, Single, Single, Single)
Declaration
public virtual void DrawLine(Color color, float x1, float y1, float x2, float y2, float width)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
Implements
DrawLinearGradientPath(GraphicsPath, RectangleF, Color[], PenAlignment, Single, Single)
Declaration
public void DrawLinearGradientPath(GraphicsPath path, RectangleF bounds, Color[] gradientColors, PenAlignment penAlignment, float penWidth, float angle)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
Implements
DrawLinearGradientPath(GraphicsPath, RectangleF, Color[], PenAlignment, Single, Single, DashStyle)
Declaration
public void DrawLinearGradientPath(GraphicsPath path, RectangleF bounds, Color[] gradientColors, PenAlignment penAlignment, float penWidth, float angle, DashStyle dashStyle)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
Implements
DrawLinearGradientPath(GraphicsPath, RectangleF, Color[], PenAlignment, Single, Single, DashStyle, Single[])
Declaration
public void DrawLinearGradientPath(GraphicsPath path, RectangleF bounds, Color[] gradientColors, PenAlignment penAlignment, float penWidth, float angle, DashStyle dashStyle, float[] dashPattern)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
Implements
DrawLinearGradientRectangle(RectangleF, Color[], PenAlignment, Single, Single)
Declaration
public virtual void DrawLinearGradientRectangle(RectangleF rectangle, Color[] gradientColors, PenAlignment penAlignment, float penWidth, float angle)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
Implements
DrawLinearGradientRectangle(RectangleF, Color[], PenAlignment, Single, Single, DashStyle)
Declaration
public virtual void DrawLinearGradientRectangle(RectangleF rectangle, Color[] gradientColors, PenAlignment penAlignment, float penWidth, float angle, DashStyle dashStyle)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
Implements
DrawLinearGradientRectangle(RectangleF, Color[], PenAlignment, Single, Single, DashStyle, Single[])
Declaration
public virtual void DrawLinearGradientRectangle(RectangleF rectangle, Color[] gradientColors, PenAlignment penAlignment, float penWidth, float angle, DashStyle dashStyle, float[] dashPattern)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
Implements
DrawPath(GraphicsPath, Color, PenAlignment, Single)
Declaration
public virtual void DrawPath(GraphicsPath path, Color color, PenAlignment penAlignment, float penWidth)
Parameters
System.
|
System.
|
System.
|
System.
|
Implements
DrawPath(GraphicsPath, Color, PenAlignment, Single, DashStyle)
Declaration
public virtual void DrawPath(GraphicsPath path, Color color, PenAlignment penAlignment, float penWidth, DashStyle dashStyle)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
Implements
DrawPath(GraphicsPath, Color, PenAlignment, Single, DashStyle, Single[])
Declaration
public virtual void DrawPath(GraphicsPath path, Color color, PenAlignment penAlignment, float penWidth, DashStyle dashStyle, float[] dashPattern)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
Implements
DrawRadialGradientPath(GraphicsPath, Rectangle, Color, Color[], PenAlignment, Single)
Declaration
public void DrawRadialGradientPath(GraphicsPath path, Rectangle bounds, Color color, Color[] gradientColors, PenAlignment penAlignment, float penWidth)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
Implements
DrawRadialGradientPath(GraphicsPath, Rectangle, Color, Color[], PenAlignment, Single, DashStyle)
Declaration
public void DrawRadialGradientPath(GraphicsPath path, Rectangle bounds, Color color, Color[] gradientColors, PenAlignment penAlignment, float penWidth, DashStyle dashStyle)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
Implements
DrawRadialGradientPath(GraphicsPath, Rectangle, Color, Color[], PenAlignment, Single, DashStyle, Single[])
Declaration
public void DrawRadialGradientPath(GraphicsPath path, Rectangle bounds, Color color, Color[] gradientColors, PenAlignment penAlignment, float penWidth, DashStyle dashStyle, float[] dashPattern)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
Implements
DrawRadialGradientRectangle(Rectangle, Color, Color[], PenAlignment, Single)
Declaration
public virtual void DrawRadialGradientRectangle(Rectangle rectangle, Color color, Color[] gradientColors, PenAlignment penAlignment, float penWidth)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
Implements
DrawRadialGradientRectangle(RectangleF, Color, Color[], PenAlignment, Single)
Declaration
public virtual void DrawRadialGradientRectangle(RectangleF rectangle, Color color, Color[] gradientColors, PenAlignment penAlignment, float penWidth)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
Implements
DrawRadialGradientRectangle(RectangleF, Color, Color[], PenAlignment, Single, DashStyle)
Declaration
public virtual void DrawRadialGradientRectangle(RectangleF rectangle, Color color, Color[] gradientColors, PenAlignment penAlignment, float penWidth, DashStyle dashStyle)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
Implements
DrawRadialGradientRectangle(RectangleF, Color, Color[], PenAlignment, Single, DashStyle, Single[])
Declaration
public virtual void DrawRadialGradientRectangle(RectangleF rectangle, Color color, Color[] gradientColors, PenAlignment penAlignment, float penWidth, DashStyle dashStyle, float[] dashPattern)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
Implements
DrawRectangle(Rectangle, Color)
Declaration
public virtual void DrawRectangle(Rectangle rectangle, Color color)
Parameters
System.
|
System.
|
Implements
DrawRectangle(Rectangle, Color, PenAlignment, Single)
Declaration
public virtual void DrawRectangle(Rectangle rectangle, Color color, PenAlignment penAlignment, float penWidth)
Parameters
System.
|
System.
|
System.
|
System.
|
Implements
DrawRectangle(RectangleF, Color, PenAlignment, Single)
Declaration
public virtual void DrawRectangle(RectangleF rectangle, Color color, PenAlignment penAlignment, float penWidth)
Parameters
System.
|
System.
|
System.
|
System.
|
Implements
DrawRectangle(RectangleF, Color, PenAlignment, Single, DashStyle)
Declaration
public virtual void DrawRectangle(RectangleF rectangle, Color color, PenAlignment penAlignment, float penWidth, DashStyle dashStyle)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
Implements
DrawRectangle(RectangleF, Color, PenAlignment, Single, DashStyle, Single[])
Declaration
public virtual void DrawRectangle(RectangleF rectangle, Color color, PenAlignment penAlignment, float penWidth, DashStyle dashStyle, float[] dashPattern)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
Implements
DrawRoundRect(Rectangle, Color, Single, Int32)
Declaration
public virtual void DrawRoundRect(Rectangle rectangle, Color color, float borderWidth, int radius)
Parameters
System.
|
System.
|
System.
|
System.
|
Implements
DrawString(String, Rectangle, Font, Color, ContentAlignment, StringFormat, ShadowSettings, TextRenderingHint, Orientation, Boolean)
Declaration
[Obsolete("Use the overload without ContentAlignment parameter. ContentAlignment should be provided through the StringFormat parameter.")]
public virtual void DrawString(string s, Rectangle rectangle, Font font, Color foreColor, ContentAlignment alignment, StringFormat stringFormat, ShadowSettings shadow, TextRenderingHint textRendering, Orientation orientation, bool flipText)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
Shadow
|
System.
|
System.
|
System.
|
Implements
DrawString(String, Rectangle, Font, Color, StringFormat, Orientation, Boolean)
Declaration
public virtual void DrawString(string s, Rectangle rectangle, Font font, Color foreColor, StringFormat stringFormat, Orientation orientation, bool flipText)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
Implements
DrawString(String, Rectangle, Font, Color, StringFormat, Orientation, Boolean, CharacterRange[], Color)
Declaration
public virtual void DrawString(string s, Rectangle rectangle, Font font, Color foreColor, StringFormat stringFormat, Orientation orientation, bool flipText, CharacterRange[] highlightRanges, Color highlightColor)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
DrawString(String, Rectangle, Font, Color, StringFormat, ShadowSettings, TextRenderingHint, Orientation, Boolean)
Declaration
public virtual void DrawString(string s, Rectangle rectangle, Font font, Color foreColor, StringFormat stringFormat, ShadowSettings shadow, TextRenderingHint textRendering, Orientation orientation, bool flipText)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
Shadow
|
System.
|
System.
|
System.
|
DrawString(String, Rectangle, Font, Color, StringFormat, ShadowSettings, TextRenderingHint, Orientation, Boolean, CharacterRange[], Color)
Declaration
public virtual void DrawString(string s, Rectangle rectangle, Font font, Color foreColor, StringFormat stringFormat, ShadowSettings shadow, TextRenderingHint textRendering, Orientation orientation, bool flipText, CharacterRange[] highlightRanges, Color highlightColor)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
Shadow
|
System.
|
System.
|
System.
|
System.
|
System.
|
DrawString(String, RectangleF, Font, Color, ContentAlignment, StringFormat, ShadowSettings, TextRenderingHint, Orientation, Boolean)
Declaration
[Obsolete("Use the overload without ContentAlignment parameter. ContentAlignment should be provided through the StringFormat parameter.")]
public virtual void DrawString(string s, RectangleF rectangle, Font font, Color foreColor, ContentAlignment alignment, StringFormat stringFormat, ShadowSettings shadow, TextRenderingHint textRendering, Orientation orientation, bool flipText)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
Shadow
|
System.
|
System.
|
System.
|
Implements
DrawString(String, RectangleF, Font, Color, StringFormat, Orientation, Boolean)
Declaration
public virtual void DrawString(string s, RectangleF rectangle, Font font, Color foreColor, StringFormat stringFormat, Orientation orientation, bool flipText)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
Implements
DrawString(String, RectangleF, Font, Color, StringFormat, Orientation, Boolean, CharacterRange[], Color)
Declaration
public virtual void DrawString(string s, RectangleF rectangle, Font font, Color foreColor, StringFormat stringFormat, Orientation orientation, bool flipText, CharacterRange[] highlightRanges, Color highlightColor)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
DrawString(String, RectangleF, Font, Color, StringFormat, ShadowSettings, TextRenderingHint, Orientation, Boolean)
Declaration
public virtual void DrawString(string s, RectangleF rectangle, Font font, Color foreColor, StringFormat stringFormat, ShadowSettings shadow, TextRenderingHint textRendering, Orientation orientation, bool flipText)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
Shadow
|
System.
|
System.
|
System.
|
DrawString(String, RectangleF, Font, Color, StringFormat, ShadowSettings, TextRenderingHint, Orientation, Boolean, CharacterRange[], Color)
Declaration
public virtual void DrawString(string s, RectangleF rectangle, Font font, Color foreColor, StringFormat stringFormat, ShadowSettings shadow, TextRenderingHint textRendering, Orientation orientation, bool flipText, CharacterRange[] highlightRanges, Color highlightColor)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
Shadow
|
System.
|
System.
|
System.
|
System.
|
System.
|
DrawString(TextParams, SizeF)
Declaration
public virtual void DrawString(TextParams textParams, SizeF measuredSize)
Parameters
Text
|
System.
|
Implements
ExcludeClip(Rectangle)
Declaration
public virtual void ExcludeClip(Rectangle rectangle)
Parameters
System.
|
Implements
FillGellRectangle(Rectangle, Color[], Single, Single)
Declaration
public virtual void FillGellRectangle(Rectangle rectangle, Color[] colorStops, float gradientPercentage, float gradientPercentage2)
Parameters
System.
|
System.
|
System.
|
System.
|
Implements
FillGlassRectangle(Rectangle, Color, Color, Color, Color, Single, Single)
Declaration
public virtual void FillGlassRectangle(Rectangle rectangle, Color color1, Color color2, Color color3, Color color4, float gradientPercentage, float gradientPercentage2)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
Implements
FillGlassRectangleNew(Rectangle, Color, Color, Color, Color, Single, Single)
Declaration
public virtual void FillGlassRectangleNew(Rectangle rectangle, Color color1, Color color2, Color color3, Color color4, float gradientPercentage, float gradientPercentage2)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
FillGradientPath(GraphicsPath, RectangleF, Color[], Single[], GradientStyles, Single, Single, Single)
Declaration
public virtual void FillGradientPath(GraphicsPath path, RectangleF rectangle, Color[] colorStops, float[] colorOffsets, GradientStyles style, float angle, float gradientPercentage, float gradientPercentage2)
Parameters
System.
|
System.
|
System.
|
System.
|
Gradient
|
System.
|
System.
|
System.
|
FillGradientRectangle(Rectangle, Color, Color, Color, Color, GradientStyles, Single)
Declaration
public virtual void FillGradientRectangle(Rectangle rectangle, Color color1, Color color2, Color color3, Color color4, GradientStyles style, float angle)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
Gradient
|
System.
|
Implements
FillGradientRectangle(Rectangle, Color, Color, Single)
Declaration
public virtual void FillGradientRectangle(Rectangle rectangle, Color color1, Color color2, float angle)
Parameters
System.
|
System.
|
System.
|
System.
|
Implements
FillGradientRectangle(Rectangle, Color[], Single[], GradientStyles, Single, Single, Single)
Declaration
public virtual void FillGradientRectangle(Rectangle rectangle, Color[] colorStops, float[] colorOffsets, GradientStyles style, float angle, float gradientPercentage, float gradientPercentage2)
Parameters
System.
|
System.
|
System.
|
Gradient
|
System.
|
System.
|
System.
|
Implements
FillGradientRectangle(RectangleF, Color[], Single[], GradientStyles, Single, Single, Single)
Declaration
public virtual void FillGradientRectangle(RectangleF rectangle, Color[] colorStops, float[] colorOffsets, GradientStyles style, float angle, float gradientPercentage, float gradientPercentage2)
Parameters
System.
|
System.
|
System.
|
Gradient
|
System.
|
System.
|
System.
|
Implements
FillOfficeGlassRectangle(Rectangle, Color, Color, Color, Color, Single, Single, Boolean)
Declaration
public void FillOfficeGlassRectangle(Rectangle rectangle, Color color1, Color color2, Color color3, Color color4, float gradientPercentage, float gradientPercentage2, bool drawEllipse)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
Implements
FillPath(Color, GraphicsPath)
Declaration
public void FillPath(Color color, GraphicsPath path)
Parameters
System.
|
System.
|
Implements
FillPath(Color[], Single[], Single, Single, Single, Rectangle, GraphicsPath)
Declaration
public void FillPath(Color[] colorStops, float[] colorOffsets, float angle, float gradientPercentage, float gradientPercentage2, Rectangle rectangle, GraphicsPath path)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
Implements
FillPolygon(Brush, PointF[])
Declaration
public void FillPolygon(Brush brush, PointF[] points)
Parameters
System.
|
System.
|
Implements
FillPolygon(Color, Point[])
Declaration
public void FillPolygon(Color color, Point[] points)
Parameters
System.
|
System.
|
Implements
FillPolygon(Color, PointF[])
Declaration
public void FillPolygon(Color color, PointF[] points)
Parameters
System.
|
System.
|
Implements
FillRectangle(Rectangle, Color)
Declaration
public virtual void FillRectangle(Rectangle rectangle, Color color)
Parameters
System.
|
System.
|
Implements
FillRectangle(RectangleF, Color)
Declaration
public virtual void FillRectangle(RectangleF rectangle, Color color)
Parameters
System.
|
System.
|
Implements
FillTextureRectangle(Rectangle, Image)
Declaration
public void FillTextureRectangle(Rectangle rectangle, Image texture)
Parameters
System.
|
System.
|
Implements
FillTextureRectangle(Rectangle, Image, WrapMode)
Declaration
public void FillTextureRectangle(Rectangle rectangle, Image texture, WrapMode wrapMode)
Parameters
System.
|
System.
|
System.
|
Implements
FillTextureRectangle(RectangleF, Image)
Declaration
public void FillTextureRectangle(RectangleF rectangle, Image texture)
Parameters
System.
|
System.
|
Implements
FillTextureRectangle(RectangleF, Image, WrapMode)
Declaration
public void FillTextureRectangle(RectangleF rectangle, Image texture, WrapMode wrapMode)
Parameters
System.
|
System.
|
System.
|
Implements
FillVistaRectangle(Rectangle, Color, Color, Color, Color, Single, Single)
Declaration
public void FillVistaRectangle(Rectangle rectangle, Color color1, Color color2, Color color3, Color color4, float gradientPercentage, float gradientPercentage2)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
Implements
Finalize()
Declaration
protected void Finalize()
GetOpacityAttributes(Single)
Declaration
public static ImageAttributes GetOpacityAttributes(float opacity)
Parameters
System.
|
Returns
System.
|
GetRoundedRect(RectangleF, Single)
Declaration
public GraphicsPath GetRoundedRect(RectangleF baseRect, float radius)
Parameters
System.
|
System.
|
Returns
System.
|
GetTextMetric(Font)
Declaration
public static FontTextMetrics GetTextMetric(Font font)
Parameters
System.
|
Returns
ImageFromText(String, Font, Color, Color)
Declaration
public Image ImageFromText(string strText, Font fnt, Color clrFore, Color clrBack)
Parameters
System.
|
System.
|
System.
|
System.
|
Returns
System.
|
MeasureString(String, Font, StringFormat)
Declaration
public SizeF MeasureString(string text, Font font, StringFormat stringFormat)
Parameters
System.
|
System.
|
System.
|
Returns
System.
|
Implements
MeasureString(String, Font, Int32, StringFormat)
Declaration
public SizeF MeasureString(string text, Font font, int availableWidth, StringFormat stringFormat)
Parameters
System.
|
System.
|
System.
|
System.
|
Returns
System.
|
NormalizeRect(RectangleF)
Declaration
public static RectangleF NormalizeRect(RectangleF actual)
Parameters
System.
|
Returns
System.
|
PopCurrentClippingPath()
Declaration
public GraphicsPath PopCurrentClippingPath()
Returns
System.
|
Implements
PushCurrentClippingPath(GraphicsPath)
Declaration
public void PushCurrentClippingPath(GraphicsPath path)
Parameters
System.
|
Implements
ResetTransform()
RestoreOpacity()
RestoreSmoothingMode()
RestoreState(Object)
Declaration
public void RestoreState(object state)
Parameters
System.
|
Implements
RotateTransform(Single)
Declaration
public void RotateTransform(float angleInDegrees)
Parameters
System.
|
Implements
SaveState()
ScaleTransform(SizeF)
Declaration
public void ScaleTransform(SizeF scale)
Parameters
System.
|
Implements
TranslateTransform(Int32, Int32)
Declaration
public void TranslateTransform(int offsetX, int offsetY)
Parameters
System.
|
System.
|
Implements
TranslateTransform(Single, Single)
Declaration
public void TranslateTransform(float offsetX, float offsetY)
Parameters
System.
|
System.
|