Class GdiSurface
Inherited Members
Namespace: Telerik.WinControls.Drawing
Assembly: Telerik.WinControls.dll
Syntax
public class GdiSurface : Surface
Constructors
GdiSurface(Graphics)
Declaration
public GdiSurface(Graphics graphics)
Parameters
System.Drawing.Graphics
graphics
|
Properties
Graphics
Declaration
protected override Graphics Graphics { get; }
Property Value
System.Drawing.Graphics
|
Overrides
TextRendererMode
Methods
BeginDraw(Object[])
Declaration
public override void BeginDraw(params object[] handles)
Parameters
System.Object[]
handles
|
Overrides
CreateLinearGradientBrush(RectangleF, GradientStop[], Single)
Declaration
public override RadBrush CreateLinearGradientBrush(RectangleF rectangle, GradientStop[] colorStops, float angle)
Parameters
System.Drawing.RectangleF
rectangle
|
GradientStop[]
colorStops
|
System.Single
angle
|
Returns
RadBrush
|
Overrides
CreateLinearGradientBrush(RectangleF, GradientStop[], RadLinearGradientMode)
Declaration
public override RadBrush CreateLinearGradientBrush(RectangleF rectangle, GradientStop[] colorStops, RadLinearGradientMode mode)
Parameters
System.Drawing.RectangleF
rectangle
|
GradientStop[]
colorStops
|
RadLinearGradientMode
mode
|
Returns
RadBrush
|
Overrides
CreatePath()
CreateRadialBrush(PointF, Single, Single, GradientStop[])
Declaration
public override RadBrush CreateRadialBrush(PointF center, float xRadius, float yRadius, GradientStop[] colorStops)
Parameters
System.Drawing.PointF
center
|
System.Single
xRadius
|
System.Single
yRadius
|
GradientStop[]
colorStops
|
Returns
RadBrush
|
Overrides
CreateRoundedRectangle(RectangleF, Single)
Declaration
public override RoundedRectangle CreateRoundedRectangle(RectangleF rect, float radius)
Parameters
System.Drawing.RectangleF
rect
|
System.Single
radius
|
Returns
RoundedRectangle
|
Overrides
CreateSolidBrush(Color)
Declaration
public override RadBrush CreateSolidBrush(Color color)
Parameters
System.Drawing.Color
color
|
Returns
RadBrush
|
Overrides
DrawBorder(IBorderElement, RectangleF)
Declaration
public override void DrawBorder(IBorderElement element, RectangleF rect)
Parameters
IBorderElement
element
|
System.Drawing.RectangleF
rect
|
Overrides
DrawBorder(IBorderElement, Path)
Declaration
public override void DrawBorder(IBorderElement element, Path path)
Parameters
IBorderElement
element
|
Path
path
|
Overrides
DrawImage(Image, RectangleF)
Declaration
public override void DrawImage(Image image, RectangleF rect)
Parameters
System.Drawing.Image
image
|
System.Drawing.RectangleF
rect
|
Overrides
DrawImage(IImageElement, RectangleF)
Declaration
public override void DrawImage(IImageElement element, RectangleF rect)
Parameters
IImageElement
element
|
System.Drawing.RectangleF
rect
|
Overrides
DrawLine(RadBrush, Single, Single, Single, Single)
Declaration
public override 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
|
Overrides
DrawPathCore(Path, RadBrush, Single)
Declaration
protected override void DrawPathCore(Path path, RadBrush brush, float width)
Parameters
Path
path
|
RadBrush
brush
|
System.Single
width
|
Overrides
DrawRectangle(RadBrush, Single, Single, Single, Single)
Declaration
public override 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
|
Overrides
DrawText(String, Font, RadBrush, RectangleF, TextFormat)
Declaration
public override void DrawText(string text, Font font, RadBrush brush, RectangleF rect, TextFormat textFormat)
Parameters
System.String
text
|
System.Drawing.Font
font
|
RadBrush
brush
|
System.Drawing.RectangleF
rect
|
TextFormat
textFormat
|
Overrides
DrawText(ITextElement, RadBrush, RectangleF)
Declaration
public override void DrawText(ITextElement element, RadBrush brush, RectangleF rect)
Parameters
ITextElement
element
|
RadBrush
brush
|
System.Drawing.RectangleF
rect
|
Overrides
EndDraw()
FillOfficeGlass(Path, Color, Color, Color, Color, Single, Single, Boolean)
Declaration
protected override void FillOfficeGlass(Path inputPath, Color color1, Color color2, Color color3, Color color4, float gradientPercentage, float gradientPercentage2, bool fillEllipse)
Parameters
Path
inputPath
|
System.Drawing.Color
color1
|
System.Drawing.Color
color2
|
System.Drawing.Color
color3
|
System.Drawing.Color
color4
|
System.Single
gradientPercentage
|
System.Single
gradientPercentage2
|
System.Boolean
fillEllipse
|
Overrides
FillPathCore(Path, RadBrush)
Declaration
protected override void FillPathCore(Path path, RadBrush brush)
Parameters
Path
path
|
RadBrush
brush
|
Overrides
FillPolygon(RadBrush, PointF[])
Declaration
public override void FillPolygon(RadBrush brush, PointF[] points)
Parameters
RadBrush
brush
|
System.Drawing.PointF[]
points
|
Overrides
FillRectangle(RadBrush, Single, Single, Single, Single)
Declaration
public override 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
|
Overrides
FillRoundedRectangleCore(RoundedRectangle, RadBrush)
Declaration
protected override void FillRoundedRectangleCore(RoundedRectangle roundedRectangle, RadBrush brush)
Parameters
RoundedRectangle
roundedRectangle
|
RadBrush
brush
|
Overrides
MeasureText(String, Font, SizeF, TextFormat)
Declaration
public override 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
|
Overrides
MeasureText(ITextElement, SizeF)
Declaration
public override SizeF MeasureText(ITextElement element, SizeF availableSize)
Parameters
ITextElement
element
|
System.Drawing.SizeF
availableSize
|
Returns
System.Drawing.SizeF
|