ClassSurface
Definition
Namespace:Telerik.WinControls.Drawing
Assembly:Telerik.WinControls.dll
Syntax:
public abstract class Surface
Inheritance: objectSurface
Derived Classes:
Constructors
Surface()
Declaration
public Surface()
Properties
Methods
BeginDraw(params object[])
Declaration
public abstract void BeginDraw(params object[] resources)
Parameters
resources
object[]
BeginEffects(Size)
Declaration
public virtual void BeginEffects(Size viewportSize)
Parameters
viewportSize
CreateDisplacementMapEffect()
Declaration
public virtual RadDisplacementMapEffect CreateDisplacementMapEffect()
Returns
CreateGaussianBlurEffect()
Declaration
public virtual RadGaussianBlurEffect CreateGaussianBlurEffect()
Returns
CreateLinearGradientBrush(RectangleF, GradientStop[], RadLinearGradientMode)
Declaration
public abstract RadBrush CreateLinearGradientBrush(RectangleF rectangle, GradientStop[] colorStops, RadLinearGradientMode mode)
Parameters
rectangle
colorStops
mode
Returns
CreateLinearGradientBrush(RectangleF, GradientStop[], float)
Declaration
public abstract RadBrush CreateLinearGradientBrush(RectangleF rectangle, GradientStop[] colorStops, float angle)
Parameters
rectangle
colorStops
angle
Returns
CreateMorphologyEffect()
Declaration
public virtual RadMorphologyEffect CreateMorphologyEffect()
Returns
CreateRadialBrush(PointF, float, float, GradientStop[])
Declaration
public abstract RadBrush CreateRadialBrush(PointF center, float xRadius, float yRadius, GradientStop[] colorStops)
Parameters
center
xRadius
yRadius
colorStops
Returns
CreateRoundedRectangle(RectangleF, float)
Declaration
public abstract RoundedRectangle CreateRoundedRectangle(RectangleF rect, float radius)
Parameters
rect
radius
Returns
DrawBorder(IBorderElement, Path)
Declaration
public abstract void DrawBorder(IBorderElement element, Path path)
Parameters
element
path
DrawBorder(IBorderElement, RectangleF)
Declaration
public abstract void DrawBorder(IBorderElement element, RectangleF rect)
Parameters
element
rect
DrawEllipse(RectangleF, RadBrush, float)
Declaration
protected void DrawEllipse(RectangleF rectangle, RadBrush brush, float width)
Parameters
rectangle
brush
width
DrawImage(IImageElement, RectangleF)
Declaration
public abstract void DrawImage(IImageElement element, RectangleF rect)
Parameters
element
rect
DrawImage(Image, RectangleF)
Declaration
public abstract void DrawImage(Image image, RectangleF rect)
Parameters
image
rect
DrawRectangle(RectangleF, RadBrush, float)
Declaration
protected void DrawRectangle(RectangleF rectangle, RadBrush brush, float width)
Parameters
rectangle
brush
width
DrawText(ITextElement, RadBrush, RectangleF)
Declaration
public abstract void DrawText(ITextElement element, RadBrush brush, RectangleF rect)
Parameters
element
brush
rect
DrawText(string, Font, RadBrush, RectangleF, TextFormat)
Declaration
public abstract void DrawText(string text, Font font, RadBrush brush, RectangleF rect, TextFormat textFormat)
Parameters
text
font
brush
rect
textFormat
EndDraw()
Declaration
public abstract void EndDraw()
EndEffects(EffectCollection)
Declaration
public virtual void EndEffects(EffectCollection effects)
Parameters
effects
FillEllipse(RectangleF, RadBrush)
Declaration
protected void FillEllipse(RectangleF rectangle, RadBrush brush)
Parameters
rectangle
brush
FillOfficeGlass(Path, Color, Color, Color, Color, float, float, bool)
Declaration
protected virtual void FillOfficeGlass(Path inputPath, Color color1, Color color2, Color color3, Color color4, float gradientPercentage, float gradientPercentage2, bool fillEllipse)
Parameters
inputPath
color1
color2
color3
color4
gradientPercentage
gradientPercentage2
fillEllipse
FillOfficeGlassBottomGlow(Graphics, Color, Color, RectangleF, int, bool)
Declaration
protected virtual bool FillOfficeGlassBottomGlow(Graphics graphics, Color color3, Color color4, RectangleF originalRectangle, int topHeight, bool fillEllipse)
Parameters
graphics
color3
color4
originalRectangle
topHeight
fillEllipse
Returns
FillOfficeGlassMain(Color, RectangleF, bool)
Declaration
protected virtual void FillOfficeGlassMain(Color color3, RectangleF innerRectangle, bool fillEllipse)
Parameters
color3
innerRectangle
fillEllipse
FillOfficeGlassOuterBorder(RectangleF, Color, int, bool)
Declaration
protected virtual void FillOfficeGlassOuterBorder(RectangleF originalRectangle, Color color3, int borderThicness, bool fillEllipse)
Parameters
originalRectangle
color3
borderThicness
fillEllipse
FillOfficeGlassTopInnerBorder(RectangleF, Color, Color, int, bool)
Declaration
protected virtual void FillOfficeGlassTopInnerBorder(RectangleF originalRectangle, Color color1, Color color4, int borderThicness, bool fillEllipse)
Parameters
originalRectangle
color1
color4
borderThicness
fillEllipse
FillOfficeGlassTopLightGlow(Graphics, Color, Color, RectangleF, float, bool)
Declaration
protected virtual void FillOfficeGlassTopLightGlow(Graphics graphics, Color color1, Color color2, RectangleF originalRectangle, float gradientPercentage, bool fillEllipse)
Parameters
graphics
color1
color2
originalRectangle
gradientPercentage
fillEllipse
FillPath(IFillElement, Path)
Declaration
public void FillPath(IFillElement element, Path path)
Parameters
element
path
FillRectangle(IFillElement, RectangleF)
Declaration
public void FillRectangle(IFillElement element, RectangleF rect)
Parameters
element
rect
FillRectangle(RectangleF, RadBrush)
Declaration
protected void FillRectangle(RectangleF rectangle, RadBrush brush)
Parameters
rectangle
brush
FillRoundedRectangleCore(RoundedRectangle, RadBrush)
Declaration
protected abstract void FillRoundedRectangleCore(RoundedRectangle roundedRectangle, RadBrush brush)
Parameters
roundedRectangle
brush
GetFillGelGradientStops(GradientStop[], int)
Declaration
protected virtual GradientStop[] GetFillGelGradientStops(GradientStop[] colorStops, int colorCount)
Parameters
colorStops
colorCount
Returns
GetFillRadialGradientStops(GradientStop[], int, float, float)
Declaration
protected virtual GradientStop[] GetFillRadialGradientStops(GradientStop[] colorStops, int colorCount, float gradientPercentage, float gradientPercentage2)
Parameters
colorStops
colorCount
gradientPercentage
gradientPercentage2
Returns
MeasureText(ITextElement, SizeF)
Declaration
public abstract SizeF MeasureText(ITextElement element, SizeF availableSize)
Parameters
element
availableSize
Returns
MeasureText(string, Font, SizeF, TextFormat)
Declaration
public abstract SizeF MeasureText(string text, Font font, SizeF availableSize, TextFormat textFormat)
Parameters
text
font
availableSize
textFormat
Returns