New to Telerik UI for WinForms? Start a free 30-day trial

Defines drawing operations used by RichTextEditor visual elements.

Definition

Namespace:Telerik.WinControls.RichTextEditor.UI

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public interface IPaintingContext

Properties

Gets the clip bounds reported by this drawing context.

C#
RectangleF ClipBounds { get; }

Gets the horizontal and vertical scale factors most recently reported by the context; they may not represent an accumulated backend transform.

C#
SizeF ScaleFactor { get; }

Methods

Draws the outline of an ellipse bounded by the specified rectangle.

C#
void DrawEllipse(RectangleF rectangle, Pen pen)
Parameters:rectangleRectangleF

The ellipse's bounding rectangle.

penPen

The pen used to draw the outline.

Draws an image into a destination rectangle.

C#
void DrawImage(Image image, RectangleF rectangle, double opacity)
Parameters:imageImage

The image to draw.

rectangleRectangleF

The destination rectangle.

opacitydouble

The opacity value passed to the drawing implementation.

Draws a line between two points.

C#
void DrawLine(PointF startPoint, PointF endPoint, Pen pen)
Parameters:startPointPointF

The line's start point.

endPointPointF

The line's end point.

penPen

The pen used to draw the line.

Draws connected line segments through the supplied points.

C#
void DrawLines(PointF[] pointF, Pen pen)
Parameters:pointFPointF[]

The points that define the line segments.

penPen

The pen used to draw them.

Draws connected line segments through the supplied points without closing the path.

C#
void DrawPath(PointF[] pointF, Pen pen)
Parameters:pointFPointF[]

The path points.

penPen

The pen used to draw the path.

Draws a closed outline through the supplied points.

C#
void DrawPolygon(PointF[] pointF, Pen pen)
Parameters:pointFPointF[]

The polygon vertices.

penPen

The pen used to draw the outline.

Draws a rectangle outline.

C#
void DrawRectangle(RectangleF rectangle, Pen pen)
Parameters:rectangleRectangleF

The rectangle to outline.

penPen

The pen used to draw the outline.

Fills an ellipse bounded by the specified rectangle.

C#
void FillEllipse(RectangleF rectangle, Brush brush)
Parameters:rectangleRectangleF

The ellipse's bounding rectangle.

brushBrush

The brush used to fill it.

Fills a polygon defined by the supplied points.

C#
void FillPolygon(PointF[] pointF, Brush brush)
Parameters:pointFPointF[]

The polygon vertices.

brushBrush

The brush used to fill the polygon.

Fills a rectangle with a brush.

C#
void FillRectangle(RectangleF rectangle, Brush brush)
Parameters:rectangleRectangleF

The rectangle to fill.

brushBrush

The brush used to fill it.

Inverts the pixels within a rectangle.

C#
void InvertRectangle(RectangleF rectangle)
Parameters:rectangleRectangleF

The rectangle whose pixels are inverted.

Resets drawing transformations to their identity state.

C#
void ResetTransformation()

Scales drawing coordinates along each axis.

C#
void ScaleTransformation(float x, float y)
Parameters:xfloat

The horizontal scale factor.

yfloat

The vertical scale factor.