Class GraphicsContext
Inheritance
Inherited Members
Namespace: Telerik.WinControls.Drawing
Assembly: Telerik.WinControls.dll
Syntax
public class GraphicsContext
Constructors
GraphicsContext()
Declaration
public GraphicsContext()
GraphicsContext(Surface)
Properties
DrawingMode
Resources
Declaration
public Dictionary<string, object> Resources { get; }
Property Value
System.Collections.Generic.Dictionary<System.String, System.Object>
|
Surface
Methods
BeginDraw(Object[])
Declaration
public void BeginDraw(params object[] handles)
Parameters
System.Object[]
handles
|
BeginEffects(Size)
Declaration
public void BeginEffects(Size viewportSize)
Parameters
System.Drawing.Size
viewportSize
|
CreateDisplacementMapEffect()
Declaration
public RadDisplacementMapEffect CreateDisplacementMapEffect()
Returns
RadDisplacementMapEffect
|
CreateGaussianBlurEffect()
CreateLinearGradientBrush(RectangleF, GradientStop[], Single)
Declaration
public RadBrush CreateLinearGradientBrush(RectangleF rectangle, GradientStop[] colorStops, float angle)
Parameters
System.Drawing.RectangleF
rectangle
|
GradientStop[]
colorStops
|
System.Single
angle
|
Returns
RadBrush
|
CreateMorphologyEffect()
CreatePath()
CreateSolidBrush(Color)
Declaration
public RadBrush CreateSolidBrush(Color color)
Parameters
System.Drawing.Color
color
|
Returns
RadBrush
|
DrawBorder(IBorderElement, RectangleF)
Declaration
public void DrawBorder(IBorderElement element, RectangleF rect)
Parameters
IBorderElement
element
|
System.Drawing.RectangleF
rect
|
DrawBorder(IBorderElement, Path)
Declaration
public void DrawBorder(IBorderElement element, Path path)
Parameters
IBorderElement
element
|
Path
path
|
DrawImage(Image, RectangleF)
Declaration
public void DrawImage(Image image, RectangleF rect)
Parameters
System.Drawing.Image
image
|
System.Drawing.RectangleF
rect
|
DrawImage(IImageElement, RectangleF)
Declaration
public void DrawImage(IImageElement element, RectangleF rect)
Parameters
IImageElement
element
|
System.Drawing.RectangleF
rect
|
DrawLine(Color, PointF, PointF)
Declaration
public void DrawLine(Color color, PointF pt1, PointF pt2)
Parameters
System.Drawing.Color
color
|
System.Drawing.PointF
pt1
|
System.Drawing.PointF
pt2
|
DrawLine(Color, Single, Single, Single, Single)
Declaration
public 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
|
DrawLine(RadBrush, PointF, PointF)
Declaration
public void DrawLine(RadBrush brush, PointF pt1, PointF pt2)
Parameters
RadBrush
brush
|
System.Drawing.PointF
pt1
|
System.Drawing.PointF
pt2
|
DrawLine(RadBrush, Single, Single, Single, Single)
Declaration
public void DrawLine(RadBrush brush, float x1, float y1, float x2, float y2)
Parameters
RadBrush
brush
|
System.Single
x1
|
System.Single
y1
|
System.Single
x2
|
System.Single
y2
|
DrawRectangle(Color, RectangleF)
Declaration
public void DrawRectangle(Color color, RectangleF rect)
Parameters
System.Drawing.Color
color
|
System.Drawing.RectangleF
rect
|
DrawRectangle(Color, Single, Single, Single, Single)
Declaration
public void DrawRectangle(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
|
DrawRectangle(RadBrush, RectangleF)
Declaration
public void DrawRectangle(RadBrush brush, RectangleF rect)
Parameters
RadBrush
brush
|
System.Drawing.RectangleF
rect
|
DrawRectangle(RadBrush, Single, Single, Single, Single)
Declaration
public void DrawRectangle(RadBrush brush, float x1, float y1, float x2, float y2)
Parameters
RadBrush
brush
|
System.Single
x1
|
System.Single
y1
|
System.Single
x2
|
System.Single
y2
|
DrawText(String, Font, Color, RectangleF)
Declaration
public void DrawText(string text, Font font, Color color, RectangleF rect)
Parameters
System.String
text
|
System.Drawing.Font
font
|
System.Drawing.Color
color
|
System.Drawing.RectangleF
rect
|
DrawText(String, Font, RadBrush, PointF)
Declaration
public void DrawText(string text, Font font, RadBrush brush, PointF point)
Parameters
System.String
text
|
System.Drawing.Font
font
|
RadBrush
brush
|
System.Drawing.PointF
point
|
DrawText(String, Font, RadBrush, PointF, TextFormat)
Declaration
public void DrawText(string text, Font font, RadBrush brush, PointF point, TextFormat textFormat)
Parameters
System.String
text
|
System.Drawing.Font
font
|
RadBrush
brush
|
System.Drawing.PointF
point
|
TextFormat
textFormat
|
DrawText(String, Font, RadBrush, RectangleF)
Declaration
public void DrawText(string text, Font font, RadBrush brush, RectangleF rect)
Parameters
System.String
text
|
System.Drawing.Font
font
|
RadBrush
brush
|
System.Drawing.RectangleF
rect
|
DrawText(String, Font, RadBrush, RectangleF, TextFormat)
Declaration
public void DrawText(string text, Font font, RadBrush brush, RectangleF rect, TextFormat format)
Parameters
System.String
text
|
System.Drawing.Font
font
|
RadBrush
brush
|
System.Drawing.RectangleF
rect
|
TextFormat
format
|
DrawText(String, Font, RadBrush, Single, Single)
Declaration
public void DrawText(string text, Font font, RadBrush brush, float x, float y)
Parameters
System.String
text
|
System.Drawing.Font
font
|
RadBrush
brush
|
System.Single
x
|
System.Single
y
|
DrawText(String, Font, RadBrush, Single, Single, TextFormat)
Declaration
public void DrawText(string text, Font font, RadBrush brush, float x, float y, TextFormat textFormat)
Parameters
System.String
text
|
System.Drawing.Font
font
|
RadBrush
brush
|
System.Single
x
|
System.Single
y
|
TextFormat
textFormat
|
DrawText(ITextElement, Color, RectangleF)
Declaration
public void DrawText(ITextElement element, Color color, RectangleF rect)
Parameters
ITextElement
element
|
System.Drawing.Color
color
|
System.Drawing.RectangleF
rect
|
DrawText(ITextElement, PointF)
Declaration
public void DrawText(ITextElement element, PointF point)
Parameters
ITextElement
element
|
System.Drawing.PointF
point
|
DrawText(ITextElement, RectangleF)
Declaration
public void DrawText(ITextElement element, RectangleF rect)
Parameters
ITextElement
element
|
System.Drawing.RectangleF
rect
|
DrawText(ITextElement, RadBrush, PointF)
Declaration
public void DrawText(ITextElement element, RadBrush brush, PointF point)
Parameters
ITextElement
element
|
RadBrush
brush
|
System.Drawing.PointF
point
|
DrawText(ITextElement, RadBrush, RectangleF)
Declaration
public void DrawText(ITextElement element, RadBrush brush, RectangleF rect)
Parameters
ITextElement
element
|
RadBrush
brush
|
System.Drawing.RectangleF
rect
|
DrawText(ITextElement, RadBrush, Single, Single)
Declaration
public void DrawText(ITextElement element, RadBrush brush, float x, float y)
Parameters
ITextElement
element
|
RadBrush
brush
|
System.Single
x
|
System.Single
y
|
EndDraw()
Declaration
public void EndDraw()
EndEffects(EffectCollection)
FillPath(IFillElement, Path)
Declaration
public void FillPath(IFillElement element, Path path)
Parameters
IFillElement
element
|
Path
path
|
FillPolygon(Color, PointF[])
Declaration
public void FillPolygon(Color color, PointF[] points)
Parameters
System.Drawing.Color
color
|
System.Drawing.PointF[]
points
|
FillPolygon(RadBrush, PointF[])
Declaration
public void FillPolygon(RadBrush brush, PointF[] points)
Parameters
RadBrush
brush
|
System.Drawing.PointF[]
points
|
FillRectangle(Color, RectangleF)
Declaration
public void FillRectangle(Color color, RectangleF rect)
Parameters
System.Drawing.Color
color
|
System.Drawing.RectangleF
rect
|
FillRectangle(Color, Single, Single, Single, Single)
Declaration
public void FillRectangle(Color color, float x, float y, float width, float height)
Parameters
System.Drawing.Color
color
|
System.Single
x
|
System.Single
y
|
System.Single
width
|
System.Single
height
|
FillRectangle(RadBrush, RectangleF)
Declaration
public void FillRectangle(RadBrush brush, RectangleF rect)
Parameters
RadBrush
brush
|
System.Drawing.RectangleF
rect
|
FillRectangle(RadBrush, Single, Single, Single, Single)
Declaration
public void FillRectangle(RadBrush brush, float x, float y, float width, float height)
Parameters
RadBrush
brush
|
System.Single
x
|
System.Single
y
|
System.Single
width
|
System.Single
height
|
FillRectangle(IFillElement, RectangleF)
Declaration
public void FillRectangle(IFillElement element, RectangleF rect)
Parameters
IFillElement
element
|
System.Drawing.RectangleF
rect
|
MeasureText(String, Font, SizeF)
Declaration
public SizeF MeasureText(string text, Font font, SizeF availableSize)
Parameters
System.String
text
|
System.Drawing.Font
font
|
System.Drawing.SizeF
availableSize
|
Returns
System.Drawing.SizeF
|
MeasureText(String, Font, SizeF, TextFormat)
Declaration
public SizeF MeasureText(string text, Font font, SizeF availableSize, TextFormat textFormat)
Parameters
System.String
text
|
System.Drawing.Font
font
|
System.Drawing.SizeF
availableSize
|
TextFormat
textFormat
|
Returns
System.Drawing.SizeF
|
MeasureText(ITextElement, SizeF)
Declaration
public SizeF MeasureText(ITextElement element, SizeF availableSize)
Parameters
ITextElement
element
|
System.Drawing.SizeF
availableSize
|
Returns
System.Drawing.SizeF
|