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