IPaintingContext
Defines the drawing operations used by diagram elements to render geometry and images.
Definition
Namespace:Telerik.WinControls.UI.Diagrams
Assembly:Telerik.WinControls.RadDiagram.dll
Syntax:
public interface IPaintingContext
Properties
Gets the clip bounds reported by the painting context.
RectangleF ClipBounds { get; }
Gets the most recent scale factors supplied to ScaleTransformation(float, float).
SizeF ScaleFactor { get; }
Methods
Outlines an ellipse inscribed in the specified rectangle.
void DrawEllipse(RectangleF rectangle, Pen pen)
The rectangle that bounds the ellipse.
penPenThe pen used to draw the outline.
Draws an image into the specified destination rectangle using the requested opacity.
void DrawImage(Image image, RectangleF rectangle, double opacity)
The image to draw.
rectangleRectangleFThe destination rectangle.
opacitydoubleThe opacity factor passed to the drawing implementation.
Outlines a rectangle with a pen.
void DrawRectangle(RectangleF rectangle, Pen pen)
The rectangle to outline.
penPenThe pen used to draw the outline.
Fills an ellipse inscribed in the specified rectangle.
void FillEllipse(RectangleF rectangle, Brush brush)
The rectangle that bounds the ellipse.
brushBrushThe brush used to fill the ellipse.
Fills a rectangle with a brush.
void FillRectangle(RectangleF rectangle, Brush brush)
The rectangle to fill.
brushBrushThe brush used to fill the rectangle.
Inverts the colors in the specified rectangle.
void InvertRectangle(RectangleF rectangle)
The rectangle whose colors are inverted.
Restores the drawing context to its unscaled state.
void ResetTransformation()