IGraphics
Defines a graphics abstraction interface for drawing operations in RadControls. Provides a unified API for various rendering backends including GDI+, DirectX, and other graphics systems.
Definition
Namespace:Telerik.WinControls.Paint
Assembly:Telerik.WinControls.dll
Syntax:
public interface IGraphics
Derived Classes:
Properties
Gets the clipping rectangle; the rectangle which needs redrawing.
Rectangle ClipRectangle { get; }
Gets the current context device - graphics object.
object UnderlayGraphics { get; }
Methods
Changes the opacity level of the current device context.
Saves the current smothingMode, and changes the smoothingmode for the current device context.
Draws a blur shadow effect for the specified graphics path.
void DrawBlurShadow(GraphicsPath path, Rectangle r, float offset, Color color)
The GraphicsPath for which to draw the shadow.
rRectangleThe bounding rectangle for the shadow effect.
offsetfloatThe offset distance of the shadow from the original path.
colorColorThe Color of the shadow.
void DrawBorder(RectangleF rectangle, IBorderElement borderElement)
Draws a custom gradient path specified by GraphicsPath, GraphicsPath for the gradient, color, gradient color array, penalignment and penwidth.
void DrawCustomGradientPath(GraphicsPath path, GraphicsPath gradientPath, Color color, Color[] gradientColors, PenAlignment penAlignment, float penWidth)
Draws a custom gradient rectangle specified by rectangle structure, graphicsPath, color, color array for the gradient effect, penalignment and penwidth.
void DrawCustomGradientRectangle(Rectangle rectangle, GraphicsPath path, Color color, Color[] gradientColors, PenAlignment penAlignment, float penWidth)
Draws a custom gradient rectangle specified by rectangle structure, graphicsPath, color, color array for the gradient effect, penalignment, penwidth and DashStyle.
void DrawCustomGradientRectangle(RectangleF rectangle, GraphicsPath path, Color color, Color[] gradientColors, PenAlignment penAlignment, float penWidth, DashStyle dashStyle, float[] dashPattern)
Draws a custom gradient rectangle specified by rectangle structure, graphicsPath, color, color array for the gradient effect, penalignment, penwidth and DashStyle.
void DrawCustomGradientRectangle(RectangleF rectangle, GraphicsPath path, Color color, Color[] gradientColors, PenAlignment penAlignment, float penWidth, DashStyle dashStyle)
Draws a custom gradient rectangle specified by rectangle structure, graphicsPath, color, color array for the gradient effect, penalignment and penwidth.
void DrawCustomGradientRectangle(RectangleF rectangle, GraphicsPath path, Color color, Color[] gradientColors, PenAlignment penAlignment, float penWidth)
Draws the specified Image object with the specified Rectangle, Image, ContentAlignment and disable flag.
void DrawImage(Rectangle rectangle, Image image, ContentAlignment alignment, bool enabled)
Draws a linear gradient path specified by GraphicsPath, bounding Rectangle, color gradient array, penalignment, penwidth, angle and DashStyle.
void DrawLinearGradientPath(GraphicsPath path, RectangleF bounds, Color[] gradientColors, PenAlignment penAlignment, float penWidth, float angle, DashStyle dashStyle, float[] dashPAttern)
Draws a linear gradient path specified by GraphicsPath, bounding Rectangle, color gradient array, penalignment, penwidth, angle and DashStyle.
void DrawLinearGradientPath(GraphicsPath path, RectangleF bounds, Color[] gradientColors, PenAlignment penAlignment, float penWidth, float angle, DashStyle dashStyle)
Draws a linear gradient path specified by GraphicsPath, bounding Rectangle, color gradient array, penalignment, penwidth and angle.
void DrawLinearGradientPath(GraphicsPath path, RectangleF bounds, Color[] gradientColors, PenAlignment penAlignment, float penWidth, float angle)
Draws a linear gradient rectangle specified by rectangle structure, color array, penalignment, penWidth, angle and DashStyle.
void DrawLinearGradientRectangle(RectangleF rectangle, Color[] gradientColors, PenAlignment penAlignment, float penWidth, float angle, DashStyle dashStyle, float[] dashPattern)
Draws a linear gradient rectangle specified by rectangle structure, color array, penalignment, penWidth, angle and DashStyle.
void DrawLinearGradientRectangle(RectangleF rectangle, Color[] gradientColors, PenAlignment penAlignment, float penWidth, float angle, DashStyle dashStyle)
Draws a linear gradient rectangle specified by rectangle structure, color array, penalignment, penWidth and angle.
void DrawLinearGradientRectangle(RectangleF rectangle, Color[] gradientColors, PenAlignment penAlignment, float penWidth, float angle)
Draws a path specified by GraphicsPath, color, pen alignment, pen width and DashStyle.
void DrawPath(GraphicsPath path, Color color, PenAlignment penAlignment, float penWidth, DashStyle dashStyle, float[] dashPattern)
Draws a path specified by GraphicsPath, color, pen alignment, pen width and DashStyle.
void DrawPath(GraphicsPath path, Color color, PenAlignment penAlignment, float penWidth, DashStyle dashStyle)
Draws a path specified by GraphicsPath, color, pen alignment and pen width.
void DrawPath(GraphicsPath path, Color color, PenAlignment penAlignment, float penWidth)
Draws a redial gradient path specified by Graphics path, bounding rectangle, color, color gradient array, pen alignment and pen width.
void DrawRadialGradientPath(GraphicsPath path, Rectangle bounds, Color color, Color[] gradientColors, PenAlignment penAlignment, float penWidth, DashStyle dashStyle, float[] dashPAttern)
Draws a redial gradient path specified by Graphics path, bounding rectangle, color, color gradient array, pen alignment and pen width.
void DrawRadialGradientPath(GraphicsPath path, Rectangle bounds, Color color, Color[] gradientColors, PenAlignment penAlignment, float penWidth, DashStyle dashStyle)
Draws a redial gradient path specified by Graphicspath, bounding rectangle, color, color gradient array, penalignment and penwidth.
void DrawRadialGradientPath(GraphicsPath path, Rectangle bounds, Color color, Color[] gradientColors, PenAlignment penAlignment, float penWidth)
Draws a radial gradient rectangle specified by rectangle structure, color, color array for gradient effect, penalignment and penWidth.
void DrawRadialGradientRectangle(Rectangle rectangle, Color color, Color[] gradientColors, PenAlignment penAlignment, float penWidth)
Draws a radial gradient rectangle specified by rectangle structure, color, color array for gradient effect, penalignment, penWidth and DashStyle.
void DrawRadialGradientRectangle(RectangleF rectangle, Color color, Color[] gradientColors, PenAlignment penAlignment, float penWidth, DashStyle dashStyle, float[] dashPattern)
Draws a radial gradient rectangle specified by rectangle structure, color, color array for gradient effect, penalignment, penWidth and DashStyle.
void DrawRadialGradientRectangle(RectangleF rectangle, Color color, Color[] gradientColors, PenAlignment penAlignment, float penWidth, DashStyle dashStyle)
Draws a radial gradient rectangle specified by rectangle structure, color, color array for gradient effect, penalignment and penWidth.
void DrawRadialGradientRectangle(RectangleF rectangle, Color color, Color[] gradientColors, PenAlignment penAlignment, float penWidth)
Draws a rectangle specified by rectangle structure, color, PenAlignment and pen width.
void DrawRectangle(Rectangle rectangle, Color color, PenAlignment penAlignment, float penWidth)
Draws a rectangle specified by rectangle structure, color, PenAlignment, pen width and DashStyle.
void DrawRectangle(RectangleF rectangle, Color color, PenAlignment penAlignment, float penWidth, DashStyle dashStyle, float[] dashPattern)
Draws a rectangle specified by rectangle structure, color, PenAlignment, pen width and DashStyle.
void DrawRectangle(RectangleF rectangle, Color color, PenAlignment penAlignment, float penWidth, DashStyle dashStyle)
Draws a rectangle specified by rectangle structure, color, PenAlignment and pen width.
void DrawRectangle(RectangleF rectangle, Color color, PenAlignment penAlignment, float penWidth)
Draws the specified text string with specified Rectangle, Font, Color, ContentAlignment, StringFormat and Orientation.
void DrawString(string drawString, Rectangle rectangle, Font font, Color color, StringFormat stringFormat, Orientation orientation, bool flipText)
void DrawString(string drawString, RectangleF rectangle, Font font, Color color, StringFormat stringFormat, Orientation orientation, bool flipText)
void DrawString(TextParams textParams, SizeF measuredSize)
Updates the clipping region of the current Graphics object to exclude the area specified by a Rectangle structure.
Fills the gel gradient rectangle specified by rectangle structure, color, color, and gradientPercentage.
Fills the glass gradient rectangle specified by rectangle structure, color, color, color, color, and gradient percentage.
Fills gradient rectangle specified by rectangle structure, color, color, color, color, GradientStyles, and angle.
Fills the gradient rectangle specified by rectangle structure, color gradient array, float offset array, GradientStyles, angle, gradientPercentage, and gradientPercentage2.
Fills the gradient rectangle specified by rectangle structure, color gradient array, float offset array, GradientStyles, angle, gradientPercentage, and gradientPercentage2.
void FillGradientRectangle(Rectangle rectangle, Color[] colorStops, float[] colorOffsets, GradientStyles style, float angle, float gradientPercentage, float gradientPercentage2)
void FillGradientRectangle(RectangleF rectangle, Color[] colorStops, float[] colorOffsets, GradientStyles style, float angle, float gradientPercentage, float gradientPercentage2)
Fills the office glass gradient rectangle specified by rectangle structure, color, color, color, color, and gradientPercentage and gradientPercentage2.
void FillOfficeGlassRectangle(Rectangle rectangle, Color color1, Color color2, Color color3, Color color4, float gradientPercentage, float gradientPercentage2, bool drawEllipse)
Fills the specified graphics path with a solid color.
void FillPath(Color color, GraphicsPath path)
The Color to use for filling the path.
pathGraphicsPathThe GraphicsPath to fill.
Fills the specified graphics path with a gradient using the provided color stops and offsets.
void FillPath(Color[] colorStops, float[] colorOffsets, float angle, float gradientPercentage, float gradientPercentage2, Rectangle rectangle, GraphicsPath path)
An array of colors that define the gradient.
colorOffsetsfloat[]An array of float values that specify the positions of the color stops along the gradient.
anglefloatThe angle of the gradient direction in degrees.
gradientPercentagefloatThe first gradient percentage value.
gradientPercentage2floatThe second gradient percentage value.
rectangleRectangleThe bounding rectangle for the gradient.
pathGraphicsPathThe GraphicsPath to fill with the gradient.
void FillRectangle(RectangleF BorderRectangle, Color color)
Fills a rectangle using the image as texture.
void FillTextureRectangle(RectangleF rectangle, Image texture, WrapMode wrapMode)
The rectangle to fill.
textureImageThe image to use as a texture.
wrapModeWrapModeDefines the way the image is populated in the rectangle
Fills a rectangle using the image as texture.
void FillTextureRectangle(RectangleF rectangle, Image texture)
The rectangle to fill.
textureImageThe image to use as a texture.
Fills the vista gradient rectangle specified by rectangle structure, color, color, color, color, gradient percentage, and gradientPercentage2.
SizeF MeasureString(string text, Font font, StringFormat stringFormat)
Resets the world transformation matrix of this Graphics to the identity matrix.
void ResetTransform()
Restores the opacity of the current device context to the previous value.
void RestoreOpacity()
Restores the smoothing mode to the previous value.
void RestoreSmoothingMode()
Rotates the local geometric transformation by the specified angle. This method prepends the rotation to the transformation.
Saves the current graphics state and returns a state object.
object SaveState()
An object representing the saved graphics state, which can be passed to RestoreState(object) to restore the graphics context.
Scales the world transformation matrix by the specified amount.