PaintingContext
Tracks clip and scale state and delegates drawing operations to a concrete rendering backend.
Definition
Namespace:Telerik.WinControls.RichTextEditor.UI
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public abstract class PaintingContext : IPaintingContext
Inheritance: objectPaintingContext
Derived Classes:
Implements:
Constructors
protected PaintingContext()
Properties
Gets or sets the clip bounds retained by this context. The GDI+ implementation does not populate it from the graphics object's visible clip.
public RectangleF ClipBounds { get; set; }
Implements:
Gets the most recently supplied scale factors. The initial value is one for each axis; resetting the transformation restores that value. Repeated scale operations can compound in the backend, so this property is not necessarily the effective transform.
public SizeF ScaleFactor { get; protected set; }
Implements:
Methods
Draws the outline of an ellipse bounded by the specified rectangle.
public abstract void DrawEllipse(RectangleF rectangle, Pen pen)
The ellipse's bounding rectangle.
penPenThe pen used to draw the outline.
Implements:
Draws an image into a destination rectangle.
public abstract void DrawImage(Image image, RectangleF rectangle, double opacity)
The image to draw.
rectangleRectangleFThe destination rectangle.
opacitydoubleThe opacity value passed to the drawing implementation.
Implements:
Draws a rectangle outline.
public abstract void DrawRectangle(RectangleF rectangle, Pen pen)
The rectangle to outline.
penPenThe pen used to draw the outline.
Implements:
Fills an ellipse bounded by the specified rectangle.
public abstract void FillEllipse(RectangleF rectanlge, Brush color)
Implements:
Fills a rectangle with a brush.
public abstract void FillRectangle(RectangleF rectanlge, Brush color)
Implements:
Inverts the pixels within a rectangle.
public abstract void InvertRectangle(RectangleF rectangle)
The rectangle whose pixels are inverted.
Implements:
Resets drawing transformations to their identity state.
public void ResetTransformation()
Implements:
Restores the concrete drawing surface's identity transformation.
protected abstract void ResetTransformationOverride()