IPaintingContext
Defines drawing operations used by RichTextEditor visual elements.
Definition
Namespace:Telerik.WinControls.RichTextEditor.UI
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public interface IPaintingContext
Properties
Gets the clip bounds reported by this drawing context.
RectangleF ClipBounds { get; }
Gets the horizontal and vertical scale factors most recently reported by the context; they may not represent an accumulated backend transform.
SizeF ScaleFactor { get; }
Methods
Draws the outline of an ellipse bounded by the specified rectangle.
void DrawEllipse(RectangleF rectangle, Pen pen)
The ellipse's bounding rectangle.
penPenThe pen used to draw the outline.
Draws an image into a destination rectangle.
void DrawImage(Image image, RectangleF rectangle, double opacity)
The image to draw.
rectangleRectangleFThe destination rectangle.
opacitydoubleThe opacity value passed to the drawing implementation.
Draws a rectangle outline.
void DrawRectangle(RectangleF rectangle, Pen pen)
The rectangle to outline.
penPenThe pen used to draw the outline.
Fills an ellipse bounded by the specified rectangle.
void FillEllipse(RectangleF rectangle, Brush brush)
The ellipse's bounding rectangle.
brushBrushThe brush used to fill it.
Fills a rectangle with a brush.
void FillRectangle(RectangleF rectangle, Brush brush)
The rectangle to fill.
brushBrushThe brush used to fill it.
Inverts the pixels within a rectangle.
void InvertRectangle(RectangleF rectangle)
The rectangle whose pixels are inverted.
Resets drawing transformations to their identity state.
void ResetTransformation()