Click or drag to resize
IGraphics Interface

Classes that implement IGraphics interface are capable of drawing on the computer screen. Classes that implement this interface can use different APIs to perform the actual drawing: GDI+, DirectX, etc.

Namespace: Telerik.WinControls.Paint
Assembly: Telerik.WinControls (in Telerik.WinControls.dll) Version: 2018.3.911.40 (2018.3.911.40)
Syntax
public interface IGraphics

The IGraphics type exposes the following members.

Properties
  NameDescription
Public propertyClipRectangle
Gets the clipping rectangle; the rectangle which needs redrawing.
Public propertyOpacity
Gets or sets the opacity level of the device context.
Public propertyUnderlayGraphics
Gets the current context device - graphics object.
Top
Methods
  NameDescription
Public methodChangeOpacity

Changes the opacity level of the current device context.

Public methodChangeSmoothingMode
Saves the current smothingMode, and changes the smoothingmode for the current device context.
Public methodCreateBitmapMask
Creates a mask specified by color and bitmap.
Public methodDrawBitmap(Image, Int32, Int32)
Draws a bitmap image specified by image object and position from the left-upper corner of the current device context.
Public methodDrawBitmap(Image, Int32, Int32, Double)
Draws a bitmap image specified by image object and position from the left-upper corner of the current device context and specified opacity.
Public methodDrawBitmap(Image, Int32, Int32, Int32, Int32)
Draws a bitmap image specified by image object, position from the left-upper corner of the current device context and specified size.
Public methodDrawBitmap(Image, Int32, Int32, Int32, Int32, Double)
Draws a bitmap image specified by image object, position from the left-upper corner of the current device context, opacity and specified size.
Public methodDrawBlurShadow
Public methodDrawBorder
Public methodDrawCustomGradientPath
Draws a custom gradient path specified by GraphicsPath, GraphicsPath for the gradient, color, gradient color array, penalignment and penwidth.
Public methodDrawCustomGradientRectangle(Rectangle, GraphicsPath, Color, Color, PenAlignment, Single)
Draws a custom gradient rectangle specified by rectangle structure, graphicsPath, color, color array for the gradient effect, penalignment and penwidth.
Public methodDrawCustomGradientRectangle(RectangleF, GraphicsPath, Color, Color, PenAlignment, Single)
Draws a custom gradient rectangle specified by rectangle structure, graphicsPath, color, color array for the gradient effect, penalignment and penwidth.
Public methodDrawCustomGradientRectangle(RectangleF, GraphicsPath, Color, Color, PenAlignment, Single, DashStyle)
Draws a custom gradient rectangle specified by rectangle structure, graphicsPath, color, color array for the gradient effect, penalignment, penwidth and DashStyle.
Public methodDrawCustomGradientRectangle(RectangleF, GraphicsPath, Color, Color, PenAlignment, Single, DashStyle, Single)
Draws a custom gradient rectangle specified by rectangle structure, graphicsPath, color, color array for the gradient effect, penalignment, penwidth and DashStyle.
Public methodDrawEllipse

Draws an ellipse defined by a bounding rectangle and color.

Public methodDrawImage(Point, Image, Boolean)

Draws the specified Image object with the specified Point, Image and disable flag.

Public methodDrawImage(Rectangle, Image, ContentAlignment, Boolean)
Draws the specified Image object with the specified Rectangle, Image, ContentAlignment and disable flag.
Public methodDrawLine(Color, Int32, Int32, Int32, Int32)
Draws a line specified by color, initial x point, initial y point, final x and final y point.
Public methodDrawLine(Color, Single, Single, Single, Single)
Draws a line specified by color, initial x point, initial y point, final x and final y point.
Public methodDrawLine(Color, DashStyle, Int32, Int32, Int32, Int32)
Draws a line specified by color, DashStyle, initial x point, initial y point, final x and final y point.
Public methodDrawLine(Color, Single, Single, Single, Single, Single)
Draws a line specified by color, initial x point, initial y point, final x, final y point and width
Public methodDrawLinearGradientPath(GraphicsPath, RectangleF, Color, PenAlignment, Single, Single)
Draws a linear gradient path specified by GraphicsPath, bounding Rectangle, color gradient array, penalignment, penwidth and angle.
Public methodDrawLinearGradientPath(GraphicsPath, RectangleF, Color, PenAlignment, Single, Single, DashStyle)
Draws a linear gradient path specified by GraphicsPath, bounding Rectangle, color gradient array, penalignment, penwidth, angle and DashStyle.
Public methodDrawLinearGradientPath(GraphicsPath, RectangleF, Color, PenAlignment, Single, Single, DashStyle, Single)
Draws a linear gradient path specified by GraphicsPath, bounding Rectangle, color gradient array, penalignment, penwidth, angle and DashStyle.
Public methodDrawLinearGradientRectangle(RectangleF, Color, PenAlignment, Single, Single)
Draws a linear gradient rectangle specified by rectangle structure, color array, penalignment, penWidth and angle.
Public methodDrawLinearGradientRectangle(RectangleF, Color, PenAlignment, Single, Single, DashStyle)
Draws a linear gradient rectangle specified by rectangle structure, color array, penalignment, penWidth, angle and DashStyle.
Public methodDrawLinearGradientRectangle(RectangleF, Color, PenAlignment, Single, Single, DashStyle, Single)
Draws a linear gradient rectangle specified by rectangle structure, color array, penalignment, penWidth, angle and DashStyle.
Public methodDrawPath(GraphicsPath, Color, PenAlignment, Single)
Draws a path specified by GraphicsPath, color, pen alignment and pen width.
Public methodDrawPath(GraphicsPath, Color, PenAlignment, Single, DashStyle)
Draws a path specified by GraphicsPath, color, pen alignment, pen width and DashStyle.
Public methodDrawPath(GraphicsPath, Color, PenAlignment, Single, DashStyle, Single)
Draws a path specified by GraphicsPath, color, pen alignment, pen width and DashStyle.
Public methodDrawRadialGradientPath(GraphicsPath, Rectangle, Color, Color, PenAlignment, Single)
Draws a redial gradient path specified by Graphicspath, bounding rectangle, color, color gradient array, penalignment and penwidth.
Public methodDrawRadialGradientPath(GraphicsPath, Rectangle, Color, Color, PenAlignment, Single, DashStyle)
Draws a redial gradient path specified by Graphics path, bounding rectangle, color, color gradient array, pen alignment and pen width.
Public methodDrawRadialGradientPath(GraphicsPath, Rectangle, Color, Color, PenAlignment, Single, DashStyle, Single)
Draws a redial gradient path specified by Graphics path, bounding rectangle, color, color gradient array, pen alignment and pen width.
Public methodDrawRadialGradientRectangle(Rectangle, Color, Color, PenAlignment, Single)
Draws a radial gradient rectangle specified by rectangle structure, color, color array for gradient effect, penalignment and penWidth.
Public methodDrawRadialGradientRectangle(RectangleF, Color, Color, PenAlignment, Single)
Draws a radial gradient rectangle specified by rectangle structure, color, color array for gradient effect, penalignment and penWidth.
Public methodDrawRadialGradientRectangle(RectangleF, Color, Color, PenAlignment, Single, DashStyle)
Draws a radial gradient rectangle specified by rectangle structure, color, color array for gradient effect, penalignment, penWidth and DashStyle.
Public methodDrawRadialGradientRectangle(RectangleF, Color, Color, PenAlignment, Single, DashStyle, Single)
Draws a radial gradient rectangle specified by rectangle structure, color, color array for gradient effect, penalignment, penWidth and DashStyle.
Public methodDrawRectangle(Rectangle, Color)
Draws a rectangle specified by a rectangle structure and a color.
Public methodDrawRectangle(Rectangle, Color, PenAlignment, Single)
Draws a rectangle specified by rectangle structure, color, PenAlignment and pen width.
Public methodDrawRectangle(RectangleF, Color, PenAlignment, Single)
Draws a rectangle specified by rectangle structure, color, PenAlignment and pen width.
Public methodDrawRectangle(RectangleF, Color, PenAlignment, Single, DashStyle)
Draws a rectangle specified by rectangle structure, color, PenAlignment, pen width and DashStyle.
Public methodDrawRectangle(RectangleF, Color, PenAlignment, Single, DashStyle, Single)
Draws a rectangle specified by rectangle structure, color, PenAlignment, pen width and DashStyle.
Public methodDrawRoundRect
Draws a round rectangle specified by Rectangle structure, color, float borderWidth, and radius in pixels.
Public methodDrawString(TextParams, SizeF)
Public methodDrawString(String, Rectangle, Font, Color, StringFormat, Orientation, Boolean)

Draws the specified text string with specified Rectangle, Font, Color, ContentAlignment, StringFormat and Orientation.

Public methodDrawString(String, RectangleF, Font, Color, StringFormat, Orientation, Boolean)
Public methodDrawString(String, Rectangle, Font, Color, ContentAlignment, StringFormat, ShadowSettings, TextRenderingHint, Orientation, Boolean) Obsolete.
Obsolete. Use the overload without ContentAlignment parameter. ContentAlignment should be provided through the StringFormat parameter.
Public methodDrawString(String, RectangleF, Font, Color, ContentAlignment, StringFormat, ShadowSettings, TextRenderingHint, Orientation, Boolean)
Obsolete. Use the overload without ContentAlignment parameter. ContentAlignment should be provided through the StringFormat parameter.
Public methodExcludeClip

Updates the clipping region of the current Graphics object to exclude the area specified by a Rectangle structure.

Public methodFillGellRectangle
Fills the gel gradient rectangle specified by rectangle structure, color, color, and gradientPercentage.
Public methodFillGlassRectangle
Fills the glass gradient rectangle specified by rectangle structure, color, color, color, color, and gradient percentage.
Public methodFillGradientRectangle(Rectangle, Color, Color, Single)
Fills the gradient rectangle specified by rectangle structure, color gradient array, float offset array, GradientStyles, angle, gradientPercentage, and gradientPercentage2.
Public methodFillGradientRectangle(Rectangle, Color, Color, Color, Color, GradientStyles, Single)
Fills gradient rectangle specified by rectangle structure, color, color, color, color, GradientStyles, and angle.
Public methodFillGradientRectangle(Rectangle, Color, Single, GradientStyles, Single, Single, Single)
Fills the gradient rectangle specified by rectangle structure, color gradient array, float offset array, GradientStyles, angle, gradientPercentage, and gradientPercentage2.
Public methodFillGradientRectangle(RectangleF, Color, Single, GradientStyles, Single, Single, Single)
Public methodFillOfficeGlassRectangle
Fills the office glass gradient rectangle specified by rectangle structure, color, color, color, color, and gradientPercentage and gradientPercentage2.
Public methodFillPath(Color, GraphicsPath)
Public methodFillPath(Color, Single, Single, Single, Single, Rectangle, GraphicsPath)
Public methodFillPolygon(Brush, PointF)
Fills the interior of a polygon defined by brush and an array of points specified by Point structures.
Public methodFillPolygon(Color, Point)
Fills the interior of a polygon defined by an array of points specified by Point structures and color.
Public methodFillPolygon(Color, PointF)
Fills the interior of a polygon defined by color and an array of points specified by Point structures.
Public methodFillRectangle(Rectangle, Color)
Fills the interior of a rectangle specified by the borderRectangle and using for color the second argument.
Public methodFillRectangle(RectangleF, Color)
Public methodFillTextureRectangle(Rectangle, Image)
Fills a rectangle using the image as texture.
Public methodFillTextureRectangle(RectangleF, Image)
Fills a rectangle using the image as texture.
Public methodFillTextureRectangle(Rectangle, Image, WrapMode)
Fills a rectangle using the image as texture.
Public methodFillTextureRectangle(RectangleF, Image, WrapMode)
Fills a rectangle using the image as texture.
Public methodFillVistaRectangle
Fills the vista gradient rectangle specified by rectangle structure, color, color, color, color, gradient percentage, and gradientPercentage2.
Public methodMeasureString
Public methodPopCurrentClippingPath
Public methodPushCurrentClippingPath
Public methodResetTransform
Resets the world transformation matrix of this Graphics to the identity matrix.
Public methodRestoreOpacity
Restores the opacity of the current device context to the previous value.
Public methodRestoreSmoothingMode
Restores the smoothing mode to the previous value.
Public methodRestoreState
Public methodRotateTransform
Rotates the local geometric transformation by the specified angle. This method prepends the rotation to the transformation.
Public methodSaveState
Public methodScaleTransform
Scales the world transformation matrix by the specified amount.
Public methodTranslateTransform(Int32, Int32)

Translates the local geometric transformation of this TextureBrush object by the specified dimensions. This method prepends the translation to the transformation.

Public methodTranslateTransform(Single, Single)
Translates the local geometric transformation of this TextureBrush object by the specified dimensions. This method prepends the translation to the transformation.
Top
See Also