Class Surface
Inheritance
System.Object
Surface
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 abstract class Surface
Constructors
Declaration
public Surface(object deviceContext)
Parameters
|
System.Object
deviceContext
|
Properties
Declaration
public object DeviceContext { get; }
Property Value
Declaration
protected abstract Graphics Graphics { get; }
Property Value
Declaration
public float Opacity { get; set; }
Property Value
Declaration
public Dictionary<string, object> Resources { get; }
Property Value
|
System.Collections.Generic.Dictionary<System.String, System.Object>
|
Methods
Declaration
public abstract void BeginDraw(params object[] resources)
Parameters
|
System.Object[]
resources
|
Declaration
public virtual void BeginEffects(Size viewportSize)
Parameters
|
System.Drawing.Size
viewportSize
|
Declaration
public virtual RadDisplacementMapEffect CreateDisplacementMapEffect()
Returns
Declaration
public virtual RadGaussianBlurEffect CreateGaussianBlurEffect()
Returns
Declaration
public abstract RadBrush CreateLinearGradientBrush(RectangleF rectangle, GradientStop[] colorStops, float angle)
Parameters
|
System.Drawing.RectangleF
rectangle
|
|
GradientStop[]
colorStops
|
|
System.Single
angle
|
Returns
Declaration
public abstract RadBrush CreateLinearGradientBrush(RectangleF rectangle, GradientStop[] colorStops, RadLinearGradientMode mode)
Parameters
Returns
Declaration
public virtual RadMorphologyEffect CreateMorphologyEffect()
Returns
Declaration
public abstract Path CreatePath()
Returns
Declaration
public abstract RadBrush CreateRadialBrush(PointF center, float xRadius, float yRadius, GradientStop[] colorStops)
Parameters
|
System.Drawing.PointF
center
|
|
System.Single
xRadius
|
|
System.Single
yRadius
|
|
GradientStop[]
colorStops
|
Returns
Declaration
public abstract RoundedRectangle CreateRoundedRectangle(RectangleF rect, float radius)
Parameters
|
System.Drawing.RectangleF
rect
|
|
System.Single
radius
|
Returns
Declaration
public abstract RadBrush CreateSolidBrush(Color color)
Parameters
|
System.Drawing.Color
color
|
Returns
Declaration
public abstract void DrawBorder(IBorderElement element, RectangleF rect)
Parameters
Declaration
public abstract void DrawBorder(IBorderElement element, Path path)
Parameters
Declaration
protected void DrawEllipse(RectangleF rectangle, RadBrush brush, float width)
Parameters
|
System.Drawing.RectangleF
rectangle
|
|
RadBrush
brush
|
|
System.Single
width
|
Declaration
public abstract void DrawImage(Image image, RectangleF rect)
Parameters
|
System.Drawing.Image
image
|
|
System.Drawing.RectangleF
rect
|
Declaration
public abstract void DrawImage(IImageElement element, RectangleF rect)
Parameters
Declaration
public abstract 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
protected abstract void DrawPathCore(Path path, RadBrush brush, float width)
Parameters
Declaration
protected void DrawRectangle(RectangleF rectangle, RadBrush brush, float width)
Parameters
|
System.Drawing.RectangleF
rectangle
|
|
RadBrush
brush
|
|
System.Single
width
|
Declaration
public abstract 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 abstract 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
|
Declaration
public abstract void DrawText(ITextElement element, RadBrush brush, RectangleF rect)
Parameters
Declaration
public abstract void EndDraw()
Declaration
public virtual void EndEffects(EffectCollection effects)
Parameters
Declaration
protected void FillEllipse(RectangleF rectangle, RadBrush brush)
Parameters
|
System.Drawing.RectangleF
rectangle
|
|
RadBrush
brush
|
Declaration
protected virtual 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
|
Declaration
protected virtual bool FillOfficeGlassBottomGlow(Graphics graphics, Color color3, Color color4, RectangleF originalRectangle, int topHeight, bool fillEllipse)
Parameters
|
System.Drawing.Graphics
graphics
|
|
System.Drawing.Color
color3
|
|
System.Drawing.Color
color4
|
|
System.Drawing.RectangleF
originalRectangle
|
|
System.Int32
topHeight
|
|
System.Boolean
fillEllipse
|
Returns
Declaration
protected virtual void FillOfficeGlassMain(Color color3, RectangleF innerRectangle, bool fillEllipse)
Parameters
|
System.Drawing.Color
color3
|
|
System.Drawing.RectangleF
innerRectangle
|
|
System.Boolean
fillEllipse
|
Declaration
protected virtual void FillOfficeGlassOuterBorder(RectangleF originalRectangle, Color color3, int borderThicness, bool fillEllipse)
Parameters
|
System.Drawing.RectangleF
originalRectangle
|
|
System.Drawing.Color
color3
|
|
System.Int32
borderThicness
|
|
System.Boolean
fillEllipse
|
Declaration
protected virtual void FillOfficeGlassTopInnerBorder(RectangleF originalRectangle, Color color1, Color color4, int borderThicness, bool fillEllipse)
Parameters
|
System.Drawing.RectangleF
originalRectangle
|
|
System.Drawing.Color
color1
|
|
System.Drawing.Color
color4
|
|
System.Int32
borderThicness
|
|
System.Boolean
fillEllipse
|
Declaration
protected virtual bool FillOfficeGlassTopInnerGlow(Graphics graphics, Color color2, Color color3, RectangleF originalRectangle, bool fillEllipse)
Parameters
|
System.Drawing.Graphics
graphics
|
|
System.Drawing.Color
color2
|
|
System.Drawing.Color
color3
|
|
System.Drawing.RectangleF
originalRectangle
|
|
System.Boolean
fillEllipse
|
Returns
Declaration
protected virtual void FillOfficeGlassTopLightGlow(Graphics graphics, Color color1, Color color2, RectangleF originalRectangle, float gradientPercentage, bool fillEllipse)
Parameters
|
System.Drawing.Graphics
graphics
|
|
System.Drawing.Color
color1
|
|
System.Drawing.Color
color2
|
|
System.Drawing.RectangleF
originalRectangle
|
|
System.Single
gradientPercentage
|
|
System.Boolean
fillEllipse
|
Declaration
public void FillPath(IFillElement element, Path path)
Parameters
Declaration
protected abstract void FillPathCore(Path path, RadBrush brush)
Parameters
Declaration
public abstract void FillPolygon(RadBrush brush, PointF[] points)
Parameters
|
RadBrush
brush
|
|
System.Drawing.PointF[]
points
|
Declaration
protected void FillRectangle(RectangleF rectangle, RadBrush brush)
Parameters
|
System.Drawing.RectangleF
rectangle
|
|
RadBrush
brush
|
Declaration
public abstract 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
protected abstract void FillRoundedRectangleCore(RoundedRectangle roundedRectangle, RadBrush brush)
Parameters
Declaration
protected Color GetColor(Color original)
Parameters
|
System.Drawing.Color
original
|
Returns
Declaration
protected virtual GradientStop[] GetFillGelGradientStops(GradientStop[] colorStops, int colorCount)
Parameters
Returns
Declaration
protected virtual GradientStop[] GetFillRadialGradientStops(GradientStop[] colorStops, int colorCount, float gradientPercentage, float gradientPercentage2)
Parameters
|
GradientStop[]
colorStops
|
|
System.Int32
colorCount
|
|
System.Single
gradientPercentage
|
|
System.Single
gradientPercentage2
|
Returns
Declaration
public abstract 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 abstract SizeF MeasureText(ITextElement element, SizeF availableSize)
Parameters
Returns
Declaration
protected Color ReduceAlphaBasedOnOriginal(int newAlpha, Color color)
Parameters
|
System.Int32
newAlpha
|
|
System.Drawing.Color
color
|
Returns
Extension Methods