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.Drawing.Graphics
graphics
|
Fields
GdiMaximumDrawRectangleLimit
Declaration
public static readonly int GdiMaximumDrawRectangleLimit
Field Value
System.Int32
|
GdiMinimumDrawRectangleLimit
Declaration
public static readonly int GdiMinimumDrawRectangleLimit
Field Value
System.Int32
|
GdiStringLengthLimit
Declaration
public static readonly int GdiStringLengthLimit
Field Value
System.Int32
|
Properties
ClipRectangle
Declaration
public Rectangle ClipRectangle { get; set; }
Property Value
System.Drawing.Rectangle
|
Implements
Graphics
Gets or sets current GDI+ graphics context.
Declaration
public Graphics Graphics { get; set; }
Property Value
System.Drawing.Graphics
|
MeasurementGraphics
Declaration
public static Graphics MeasurementGraphics { get; }
Property Value
System.Drawing.Graphics
|
Opacity
Declaration
public double Opacity { get; }
Property Value
System.Double
|
Implements
UnderlayGraphics
Declaration
public object UnderlayGraphics { get; }
Property Value
System.Object
|
Implements
Methods
ChangeOpacity(Double)
Declaration
public void ChangeOpacity(double opacity)
Parameters
System.Double
opacity
|
Implements
ChangeSmoothingMode(SmoothingMode)
Declaration
public virtual void ChangeSmoothingMode(SmoothingMode smoothingMode)
Parameters
System.Drawing.Drawing2D.SmoothingMode
smoothingMode
|
Implements
CheckValidPath(GraphicsPath)
Declaration
protected bool CheckValidPath(GraphicsPath path)
Parameters
System.Drawing.Drawing2D.GraphicsPath
path
|
Returns
System.Boolean
|
CheckValidRectangle(Rectangle)
Declaration
protected bool CheckValidRectangle(Rectangle rectangle)
Parameters
System.Drawing.Rectangle
rectangle
|
Returns
System.Boolean
|
CheckValidRectangle(RectangleF)
Declaration
protected bool CheckValidRectangle(RectangleF rectangle)
Parameters
System.Drawing.RectangleF
rectangle
|
Returns
System.Boolean
|
CreateBitmapMask(Color, Bitmap)
Declaration
public Bitmap CreateBitmapMask(Color maskColor, Bitmap bitmap)
Parameters
System.Drawing.Color
maskColor
|
System.Drawing.Bitmap
bitmap
|
Returns
System.Drawing.Bitmap
|
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.Drawing.Image
image
|
System.Int32
x
|
System.Int32
y
|
Implements
DrawBitmap(Image, Int32, Int32, Double)
Declaration
public virtual void DrawBitmap(Image image, int x, int y, double opacity)
Parameters
System.Drawing.Image
image
|
System.Int32
x
|
System.Int32
y
|
System.Double
opacity
|
Implements
DrawBitmap(Image, Int32, Int32, Int32, Int32)
Declaration
public virtual void DrawBitmap(Image image, int x, int y, int width, int height)
Parameters
System.Drawing.Image
image
|
System.Int32
x
|
System.Int32
y
|
System.Int32
width
|
System.Int32
height
|
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.Drawing.Image
image
|
System.Int32
x
|
System.Int32
y
|
System.Int32
width
|
System.Int32
height
|
System.Double
opacity
|
Implements
DrawBlurShadow(GraphicsPath, Rectangle, Single, Color)
Declaration
public void DrawBlurShadow(GraphicsPath path, Rectangle r, float offset, Color color)
Parameters
System.Drawing.Drawing2D.GraphicsPath
path
|
System.Drawing.Rectangle
r
|
System.Single
offset
|
System.Drawing.Color
color
|
Implements
DrawBorder(RectangleF, IBorderElement)
Draws a border specified by rectangle structure, IBorderElement.
Declaration
public virtual void DrawBorder(RectangleF rectangle, IBorderElement borderElement)
Parameters
System.Drawing.RectangleF
rectangle
|
IBorderElement
borderElement
|
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.Drawing.Drawing2D.GraphicsPath
path
|
System.Drawing.Drawing2D.GraphicsPath
gradientPath
|
System.Drawing.Color
color
|
System.Drawing.Color[]
gradientColors
|
System.Drawing.Drawing2D.PenAlignment
penAlignment
|
System.Single
penWidth
|
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.Drawing.Drawing2D.GraphicsPath
path
|
System.Drawing.Drawing2D.GraphicsPath
gradientPath
|
System.Drawing.Color
color
|
System.Drawing.Color[]
gradientColors
|
System.Drawing.Drawing2D.PenAlignment
penAlignment
|
System.Single
penWidth
|
System.Drawing.Drawing2D.DashStyle
dashStyle
|
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.Drawing.Drawing2D.GraphicsPath
path
|
System.Drawing.Drawing2D.GraphicsPath
gradientPath
|
System.Drawing.Color
color
|
System.Drawing.Color[]
gradientColors
|
System.Drawing.Drawing2D.PenAlignment
penAlignment
|
System.Single
penWidth
|
System.Drawing.Drawing2D.DashStyle
dashStyle
|
System.Single[]
dashPattern
|
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.Drawing.Rectangle
rectangle
|
System.Drawing.Drawing2D.GraphicsPath
path
|
System.Drawing.Color
color
|
System.Drawing.Color[]
gradientColors
|
System.Drawing.Drawing2D.PenAlignment
penAlignment
|
System.Single
penWidth
|
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.Drawing.RectangleF
rectangle
|
System.Drawing.Drawing2D.GraphicsPath
path
|
System.Drawing.Color
color
|
System.Drawing.Color[]
gradientColors
|
System.Drawing.Drawing2D.PenAlignment
penAlignment
|
System.Single
penWidth
|
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.Drawing.RectangleF
rectangle
|
System.Drawing.Drawing2D.GraphicsPath
path
|
System.Drawing.Color
color
|
System.Drawing.Color[]
gradientColors
|
System.Drawing.Drawing2D.PenAlignment
penAlignment
|
System.Single
penWidth
|
System.Drawing.Drawing2D.DashStyle
dashStyle
|
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.Drawing.RectangleF
rectangle
|
System.Drawing.Drawing2D.GraphicsPath
path
|
System.Drawing.Color
color
|
System.Drawing.Color[]
gradientColors
|
System.Drawing.Drawing2D.PenAlignment
penAlignment
|
System.Single
penWidth
|
System.Drawing.Drawing2D.DashStyle
dashStyle
|
System.Single[]
dashPattern
|
Implements
DrawEllipse(Rectangle, Color)
Declaration
public virtual void DrawEllipse(Rectangle rectangle, Color color)
Parameters
System.Drawing.Rectangle
rectangle
|
System.Drawing.Color
color
|
Implements
DrawImage(Point, Image, Boolean)
Declaration
public virtual void DrawImage(Point point, Image image, bool enabled)
Parameters
System.Drawing.Point
point
|
System.Drawing.Image
image
|
System.Boolean
enabled
|
Implements
DrawImage(Rectangle, Image, ContentAlignment, Boolean)
Declaration
public virtual void DrawImage(Rectangle rectangle, Image image, ContentAlignment alignment, bool enabled)
Parameters
System.Drawing.Rectangle
rectangle
|
System.Drawing.Image
image
|
System.Drawing.ContentAlignment
alignment
|
System.Boolean
enabled
|
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.Drawing.Color
color
|
System.Drawing.Drawing2D.DashStyle
dashStyle
|
System.Int32
x1
|
System.Int32
y1
|
System.Int32
x2
|
System.Int32
y2
|
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.Drawing.Color
color
|
System.Drawing.Drawing2D.DashStyle
dashStyle
|
System.Int32
x1
|
System.Int32
y1
|
System.Int32
x2
|
System.Int32
y2
|
System.Single
width
|
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.Drawing.Color
color
|
System.Drawing.Drawing2D.DashStyle
dashStyle
|
System.Single[]
dashPattern
|
System.Int32
x1
|
System.Int32
y1
|
System.Int32
x2
|
System.Int32
y2
|
DrawLine(Color, Int32, Int32, Int32, Int32)
Declaration
public virtual void DrawLine(Color color, int x1, int y1, int x2, int y2)
Parameters
System.Drawing.Color
color
|
System.Int32
x1
|
System.Int32
y1
|
System.Int32
x2
|
System.Int32
y2
|
Implements
DrawLine(Color, Single, Single, Single, Single)
Declaration
public virtual void DrawLine(Color color, float x1, float y1, float x2, float y2)
Parameters
System.Drawing.Color
color
|
System.Single
x1
|
System.Single
y1
|
System.Single
x2
|
System.Single
y2
|
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.Drawing.Color
color
|
System.Single
x1
|
System.Single
y1
|
System.Single
x2
|
System.Single
y2
|
System.Single
width
|
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.Drawing.Drawing2D.GraphicsPath
path
|
System.Drawing.RectangleF
bounds
|
System.Drawing.Color[]
gradientColors
|
System.Drawing.Drawing2D.PenAlignment
penAlignment
|
System.Single
penWidth
|
System.Single
angle
|
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.Drawing.Drawing2D.GraphicsPath
path
|
System.Drawing.RectangleF
bounds
|
System.Drawing.Color[]
gradientColors
|
System.Drawing.Drawing2D.PenAlignment
penAlignment
|
System.Single
penWidth
|
System.Single
angle
|
System.Drawing.Drawing2D.DashStyle
dashStyle
|
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.Drawing.Drawing2D.GraphicsPath
path
|
System.Drawing.RectangleF
bounds
|
System.Drawing.Color[]
gradientColors
|
System.Drawing.Drawing2D.PenAlignment
penAlignment
|
System.Single
penWidth
|
System.Single
angle
|
System.Drawing.Drawing2D.DashStyle
dashStyle
|
System.Single[]
dashPattern
|
Implements
DrawLinearGradientRectangle(RectangleF, Color[], PenAlignment, Single, Single)
Declaration
public virtual void DrawLinearGradientRectangle(RectangleF rectangle, Color[] gradientColors, PenAlignment penAlignment, float penWidth, float angle)
Parameters
System.Drawing.RectangleF
rectangle
|
System.Drawing.Color[]
gradientColors
|
System.Drawing.Drawing2D.PenAlignment
penAlignment
|
System.Single
penWidth
|
System.Single
angle
|
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.Drawing.RectangleF
rectangle
|
System.Drawing.Color[]
gradientColors
|
System.Drawing.Drawing2D.PenAlignment
penAlignment
|
System.Single
penWidth
|
System.Single
angle
|
System.Drawing.Drawing2D.DashStyle
dashStyle
|
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.Drawing.RectangleF
rectangle
|
System.Drawing.Color[]
gradientColors
|
System.Drawing.Drawing2D.PenAlignment
penAlignment
|
System.Single
penWidth
|
System.Single
angle
|
System.Drawing.Drawing2D.DashStyle
dashStyle
|
System.Single[]
dashPattern
|
Implements
DrawPath(GraphicsPath, Color, PenAlignment, Single)
Declaration
public virtual void DrawPath(GraphicsPath path, Color color, PenAlignment penAlignment, float penWidth)
Parameters
System.Drawing.Drawing2D.GraphicsPath
path
|
System.Drawing.Color
color
|
System.Drawing.Drawing2D.PenAlignment
penAlignment
|
System.Single
penWidth
|
Implements
DrawPath(GraphicsPath, Color, PenAlignment, Single, DashStyle)
Declaration
public virtual void DrawPath(GraphicsPath path, Color color, PenAlignment penAlignment, float penWidth, DashStyle dashStyle)
Parameters
System.Drawing.Drawing2D.GraphicsPath
path
|
System.Drawing.Color
color
|
System.Drawing.Drawing2D.PenAlignment
penAlignment
|
System.Single
penWidth
|
System.Drawing.Drawing2D.DashStyle
dashStyle
|
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.Drawing.Drawing2D.GraphicsPath
path
|
System.Drawing.Color
color
|
System.Drawing.Drawing2D.PenAlignment
penAlignment
|
System.Single
penWidth
|
System.Drawing.Drawing2D.DashStyle
dashStyle
|
System.Single[]
dashPattern
|
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.Drawing.Drawing2D.GraphicsPath
path
|
System.Drawing.Rectangle
bounds
|
System.Drawing.Color
color
|
System.Drawing.Color[]
gradientColors
|
System.Drawing.Drawing2D.PenAlignment
penAlignment
|
System.Single
penWidth
|
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.Drawing.Drawing2D.GraphicsPath
path
|
System.Drawing.Rectangle
bounds
|
System.Drawing.Color
color
|
System.Drawing.Color[]
gradientColors
|
System.Drawing.Drawing2D.PenAlignment
penAlignment
|
System.Single
penWidth
|
System.Drawing.Drawing2D.DashStyle
dashStyle
|
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.Drawing.Drawing2D.GraphicsPath
path
|
System.Drawing.Rectangle
bounds
|
System.Drawing.Color
color
|
System.Drawing.Color[]
gradientColors
|
System.Drawing.Drawing2D.PenAlignment
penAlignment
|
System.Single
penWidth
|
System.Drawing.Drawing2D.DashStyle
dashStyle
|
System.Single[]
dashPattern
|
Implements
DrawRadialGradientRectangle(Rectangle, Color, Color[], PenAlignment, Single)
Declaration
public virtual void DrawRadialGradientRectangle(Rectangle rectangle, Color color, Color[] gradientColors, PenAlignment penAlignment, float penWidth)
Parameters
System.Drawing.Rectangle
rectangle
|
System.Drawing.Color
color
|
System.Drawing.Color[]
gradientColors
|
System.Drawing.Drawing2D.PenAlignment
penAlignment
|
System.Single
penWidth
|
Implements
DrawRadialGradientRectangle(RectangleF, Color, Color[], PenAlignment, Single)
Declaration
public virtual void DrawRadialGradientRectangle(RectangleF rectangle, Color color, Color[] gradientColors, PenAlignment penAlignment, float penWidth)
Parameters
System.Drawing.RectangleF
rectangle
|
System.Drawing.Color
color
|
System.Drawing.Color[]
gradientColors
|
System.Drawing.Drawing2D.PenAlignment
penAlignment
|
System.Single
penWidth
|
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.Drawing.RectangleF
rectangle
|
System.Drawing.Color
color
|
System.Drawing.Color[]
gradientColors
|
System.Drawing.Drawing2D.PenAlignment
penAlignment
|
System.Single
penWidth
|
System.Drawing.Drawing2D.DashStyle
dashStyle
|
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.Drawing.RectangleF
rectangle
|
System.Drawing.Color
color
|
System.Drawing.Color[]
gradientColors
|
System.Drawing.Drawing2D.PenAlignment
penAlignment
|
System.Single
penWidth
|
System.Drawing.Drawing2D.DashStyle
dashStyle
|
System.Single[]
dashPattern
|
Implements
DrawRectangle(Rectangle, Color)
Declaration
public virtual void DrawRectangle(Rectangle rectangle, Color color)
Parameters
System.Drawing.Rectangle
rectangle
|
System.Drawing.Color
color
|
Implements
DrawRectangle(Rectangle, Color, PenAlignment, Single)
Declaration
public virtual void DrawRectangle(Rectangle rectangle, Color color, PenAlignment penAlignment, float penWidth)
Parameters
System.Drawing.Rectangle
rectangle
|
System.Drawing.Color
color
|
System.Drawing.Drawing2D.PenAlignment
penAlignment
|
System.Single
penWidth
|
Implements
DrawRectangle(RectangleF, Color, PenAlignment, Single)
Declaration
public virtual void DrawRectangle(RectangleF rectangle, Color color, PenAlignment penAlignment, float penWidth)
Parameters
System.Drawing.RectangleF
rectangle
|
System.Drawing.Color
color
|
System.Drawing.Drawing2D.PenAlignment
penAlignment
|
System.Single
penWidth
|
Implements
DrawRectangle(RectangleF, Color, PenAlignment, Single, DashStyle)
Declaration
public virtual void DrawRectangle(RectangleF rectangle, Color color, PenAlignment penAlignment, float penWidth, DashStyle dashStyle)
Parameters
System.Drawing.RectangleF
rectangle
|
System.Drawing.Color
color
|
System.Drawing.Drawing2D.PenAlignment
penAlignment
|
System.Single
penWidth
|
System.Drawing.Drawing2D.DashStyle
dashStyle
|
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.Drawing.RectangleF
rectangle
|
System.Drawing.Color
color
|
System.Drawing.Drawing2D.PenAlignment
penAlignment
|
System.Single
penWidth
|
System.Drawing.Drawing2D.DashStyle
dashStyle
|
System.Single[]
dashPattern
|
Implements
DrawRoundRect(Rectangle, Color, Single, Int32)
Declaration
public virtual void DrawRoundRect(Rectangle rectangle, Color color, float borderWidth, int radius)
Parameters
System.Drawing.Rectangle
rectangle
|
System.Drawing.Color
color
|
System.Single
borderWidth
|
System.Int32
radius
|
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.String
s
|
System.Drawing.Rectangle
rectangle
|
System.Drawing.Font
font
|
System.Drawing.Color
foreColor
|
System.Drawing.ContentAlignment
alignment
|
System.Drawing.StringFormat
stringFormat
|
ShadowSettings
shadow
|
System.Drawing.Text.TextRenderingHint
textRendering
|
System.Windows.Forms.Orientation
orientation
|
System.Boolean
flipText
|
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.String
s
|
System.Drawing.Rectangle
rectangle
|
System.Drawing.Font
font
|
System.Drawing.Color
foreColor
|
System.Drawing.StringFormat
stringFormat
|
System.Windows.Forms.Orientation
orientation
|
System.Boolean
flipText
|
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.String
s
|
System.Drawing.Rectangle
rectangle
|
System.Drawing.Font
font
|
System.Drawing.Color
foreColor
|
System.Drawing.StringFormat
stringFormat
|
System.Windows.Forms.Orientation
orientation
|
System.Boolean
flipText
|
System.Drawing.CharacterRange[]
highlightRanges
|
System.Drawing.Color
highlightColor
|
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.String
s
|
System.Drawing.Rectangle
rectangle
|
System.Drawing.Font
font
|
System.Drawing.Color
foreColor
|
System.Drawing.StringFormat
stringFormat
|
ShadowSettings
shadow
|
System.Drawing.Text.TextRenderingHint
textRendering
|
System.Windows.Forms.Orientation
orientation
|
System.Boolean
flipText
|
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.String
s
|
System.Drawing.Rectangle
rectangle
|
System.Drawing.Font
font
|
System.Drawing.Color
foreColor
|
System.Drawing.StringFormat
stringFormat
|
ShadowSettings
shadow
|
System.Drawing.Text.TextRenderingHint
textRendering
|
System.Windows.Forms.Orientation
orientation
|
System.Boolean
flipText
|
System.Drawing.CharacterRange[]
highlightRanges
|
System.Drawing.Color
highlightColor
|
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.String
s
|
System.Drawing.RectangleF
rectangle
|
System.Drawing.Font
font
|
System.Drawing.Color
foreColor
|
System.Drawing.ContentAlignment
alignment
|
System.Drawing.StringFormat
stringFormat
|
ShadowSettings
shadow
|
System.Drawing.Text.TextRenderingHint
textRendering
|
System.Windows.Forms.Orientation
orientation
|
System.Boolean
flipText
|
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.String
s
|
System.Drawing.RectangleF
rectangle
|
System.Drawing.Font
font
|
System.Drawing.Color
foreColor
|
System.Drawing.StringFormat
stringFormat
|
System.Windows.Forms.Orientation
orientation
|
System.Boolean
flipText
|
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.String
s
|
System.Drawing.RectangleF
rectangle
|
System.Drawing.Font
font
|
System.Drawing.Color
foreColor
|
System.Drawing.StringFormat
stringFormat
|
System.Windows.Forms.Orientation
orientation
|
System.Boolean
flipText
|
System.Drawing.CharacterRange[]
highlightRanges
|
System.Drawing.Color
highlightColor
|
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.String
s
|
System.Drawing.RectangleF
rectangle
|
System.Drawing.Font
font
|
System.Drawing.Color
foreColor
|
System.Drawing.StringFormat
stringFormat
|
ShadowSettings
shadow
|
System.Drawing.Text.TextRenderingHint
textRendering
|
System.Windows.Forms.Orientation
orientation
|
System.Boolean
flipText
|
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.String
s
|
System.Drawing.RectangleF
rectangle
|
System.Drawing.Font
font
|
System.Drawing.Color
foreColor
|
System.Drawing.StringFormat
stringFormat
|
ShadowSettings
shadow
|
System.Drawing.Text.TextRenderingHint
textRendering
|
System.Windows.Forms.Orientation
orientation
|
System.Boolean
flipText
|
System.Drawing.CharacterRange[]
highlightRanges
|
System.Drawing.Color
highlightColor
|
DrawString(TextParams, SizeF)
Declaration
public virtual void DrawString(TextParams textParams, SizeF measuredSize)
Parameters
TextParams
textParams
|
System.Drawing.SizeF
measuredSize
|
Implements
ExcludeClip(Rectangle)
Declaration
public virtual void ExcludeClip(Rectangle rectangle)
Parameters
System.Drawing.Rectangle
rectangle
|
Implements
FillGellRectangle(Rectangle, Color[], Single, Single)
Declaration
public virtual void FillGellRectangle(Rectangle rectangle, Color[] colorStops, float gradientPercentage, float gradientPercentage2)
Parameters
System.Drawing.Rectangle
rectangle
|
System.Drawing.Color[]
colorStops
|
System.Single
gradientPercentage
|
System.Single
gradientPercentage2
|
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.Drawing.Rectangle
rectangle
|
System.Drawing.Color
color1
|
System.Drawing.Color
color2
|
System.Drawing.Color
color3
|
System.Drawing.Color
color4
|
System.Single
gradientPercentage
|
System.Single
gradientPercentage2
|
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.Drawing.Rectangle
rectangle
|
System.Drawing.Color
color1
|
System.Drawing.Color
color2
|
System.Drawing.Color
color3
|
System.Drawing.Color
color4
|
System.Single
gradientPercentage
|
System.Single
gradientPercentage2
|
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.Drawing.Drawing2D.GraphicsPath
path
|
System.Drawing.RectangleF
rectangle
|
System.Drawing.Color[]
colorStops
|
System.Single[]
colorOffsets
|
GradientStyles
style
|
System.Single
angle
|
System.Single
gradientPercentage
|
System.Single
gradientPercentage2
|
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.Drawing.Rectangle
rectangle
|
System.Drawing.Color
color1
|
System.Drawing.Color
color2
|
System.Drawing.Color
color3
|
System.Drawing.Color
color4
|
GradientStyles
style
|
System.Single
angle
|
Implements
FillGradientRectangle(Rectangle, Color, Color, Single)
Declaration
public virtual void FillGradientRectangle(Rectangle rectangle, Color color1, Color color2, float angle)
Parameters
System.Drawing.Rectangle
rectangle
|
System.Drawing.Color
color1
|
System.Drawing.Color
color2
|
System.Single
angle
|
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.Drawing.Rectangle
rectangle
|
System.Drawing.Color[]
colorStops
|
System.Single[]
colorOffsets
|
GradientStyles
style
|
System.Single
angle
|
System.Single
gradientPercentage
|
System.Single
gradientPercentage2
|
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.Drawing.RectangleF
rectangle
|
System.Drawing.Color[]
colorStops
|
System.Single[]
colorOffsets
|
GradientStyles
style
|
System.Single
angle
|
System.Single
gradientPercentage
|
System.Single
gradientPercentage2
|
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.Drawing.Rectangle
rectangle
|
System.Drawing.Color
color1
|
System.Drawing.Color
color2
|
System.Drawing.Color
color3
|
System.Drawing.Color
color4
|
System.Single
gradientPercentage
|
System.Single
gradientPercentage2
|
System.Boolean
drawEllipse
|
Implements
FillPath(Color, GraphicsPath)
Declaration
public void FillPath(Color color, GraphicsPath path)
Parameters
System.Drawing.Color
color
|
System.Drawing.Drawing2D.GraphicsPath
path
|
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.Drawing.Color[]
colorStops
|
System.Single[]
colorOffsets
|
System.Single
angle
|
System.Single
gradientPercentage
|
System.Single
gradientPercentage2
|
System.Drawing.Rectangle
rectangle
|
System.Drawing.Drawing2D.GraphicsPath
path
|
Implements
FillPolygon(Brush, PointF[])
Declaration
public void FillPolygon(Brush brush, PointF[] points)
Parameters
System.Drawing.Brush
brush
|
System.Drawing.PointF[]
points
|
Implements
FillPolygon(Color, Point[])
Declaration
public void FillPolygon(Color color, Point[] points)
Parameters
System.Drawing.Color
color
|
System.Drawing.Point[]
points
|
Implements
FillPolygon(Color, PointF[])
Declaration
public void FillPolygon(Color color, PointF[] points)
Parameters
System.Drawing.Color
color
|
System.Drawing.PointF[]
points
|
Implements
FillRectangle(Rectangle, Color)
Declaration
public virtual void FillRectangle(Rectangle rectangle, Color color)
Parameters
System.Drawing.Rectangle
rectangle
|
System.Drawing.Color
color
|
Implements
FillRectangle(RectangleF, Color)
Declaration
public virtual void FillRectangle(RectangleF rectangle, Color color)
Parameters
System.Drawing.RectangleF
rectangle
|
System.Drawing.Color
color
|
Implements
FillTextureRectangle(Rectangle, Image)
Declaration
public void FillTextureRectangle(Rectangle rectangle, Image texture)
Parameters
System.Drawing.Rectangle
rectangle
|
System.Drawing.Image
texture
|
Implements
FillTextureRectangle(Rectangle, Image, WrapMode)
Declaration
public void FillTextureRectangle(Rectangle rectangle, Image texture, WrapMode wrapMode)
Parameters
System.Drawing.Rectangle
rectangle
|
System.Drawing.Image
texture
|
System.Drawing.Drawing2D.WrapMode
wrapMode
|
Implements
FillTextureRectangle(RectangleF, Image)
Declaration
public void FillTextureRectangle(RectangleF rectangle, Image texture)
Parameters
System.Drawing.RectangleF
rectangle
|
System.Drawing.Image
texture
|
Implements
FillTextureRectangle(RectangleF, Image, WrapMode)
Declaration
public void FillTextureRectangle(RectangleF rectangle, Image texture, WrapMode wrapMode)
Parameters
System.Drawing.RectangleF
rectangle
|
System.Drawing.Image
texture
|
System.Drawing.Drawing2D.WrapMode
wrapMode
|
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.Drawing.Rectangle
rectangle
|
System.Drawing.Color
color1
|
System.Drawing.Color
color2
|
System.Drawing.Color
color3
|
System.Drawing.Color
color4
|
System.Single
gradientPercentage
|
System.Single
gradientPercentage2
|
Implements
Finalize()
Declaration
protected void Finalize()
GetOpacityAttributes(Single)
Declaration
public static ImageAttributes GetOpacityAttributes(float opacity)
Parameters
System.Single
opacity
|
Returns
System.Drawing.Imaging.ImageAttributes
|
GetRoundedRect(RectangleF, Single)
Declaration
public GraphicsPath GetRoundedRect(RectangleF baseRect, float radius)
Parameters
System.Drawing.RectangleF
baseRect
|
System.Single
radius
|
Returns
System.Drawing.Drawing2D.GraphicsPath
|
GetTextMetric(Font)
Declaration
public static FontTextMetrics GetTextMetric(Font font)
Parameters
System.Drawing.Font
font
|
Returns
FontTextMetrics
|
ImageFromText(String, Font, Color, Color)
Declaration
public Image ImageFromText(string strText, Font fnt, Color clrFore, Color clrBack)
Parameters
System.String
strText
|
System.Drawing.Font
fnt
|
System.Drawing.Color
clrFore
|
System.Drawing.Color
clrBack
|
Returns
System.Drawing.Image
|
MeasureString(String, Font, StringFormat)
Declaration
public SizeF MeasureString(string text, Font font, StringFormat stringFormat)
Parameters
System.String
text
|
System.Drawing.Font
font
|
System.Drawing.StringFormat
stringFormat
|
Returns
System.Drawing.SizeF
|
Implements
MeasureString(String, Font, Int32, StringFormat)
Declaration
public SizeF MeasureString(string text, Font font, int availableWidth, StringFormat stringFormat)
Parameters
System.String
text
|
System.Drawing.Font
font
|
System.Int32
availableWidth
|
System.Drawing.StringFormat
stringFormat
|
Returns
System.Drawing.SizeF
|
NormalizeRect(RectangleF)
Declaration
public static RectangleF NormalizeRect(RectangleF actual)
Parameters
System.Drawing.RectangleF
actual
|
Returns
System.Drawing.RectangleF
|
PopCurrentClippingPath()
Declaration
public GraphicsPath PopCurrentClippingPath()
Returns
System.Drawing.Drawing2D.GraphicsPath
|
Implements
PushCurrentClippingPath(GraphicsPath)
Declaration
public void PushCurrentClippingPath(GraphicsPath path)
Parameters
System.Drawing.Drawing2D.GraphicsPath
path
|
Implements
ResetTransform()
RestoreOpacity()
RestoreSmoothingMode()
RestoreState(Object)
Declaration
public void RestoreState(object state)
Parameters
System.Object
state
|
Implements
RotateTransform(Single)
Declaration
public void RotateTransform(float angleInDegrees)
Parameters
System.Single
angleInDegrees
|
Implements
SaveState()
ScaleTransform(SizeF)
Declaration
public void ScaleTransform(SizeF scale)
Parameters
System.Drawing.SizeF
scale
|
Implements
TranslateTransform(Int32, Int32)
Declaration
public void TranslateTransform(int offsetX, int offsetY)
Parameters
System.Int32
offsetX
|
System.Int32
offsetY
|
Implements
TranslateTransform(Single, Single)
Declaration
public void TranslateTransform(float offsetX, float offsetY)
Parameters
System.Single
offsetX
|
System.Single
offsetY
|