GDIPaintingContext
Implements diagram drawing operations with a Graphics surface.
Definition
Namespace:Telerik.WinControls.UI.Diagrams
Assembly:Telerik.WinControls.RadDiagram.dll
Syntax:
public class GDIPaintingContext : PaintingContext, IPaintingContext
Inheritance: objectPaintingContextGDIPaintingContext
Implements:
Inherited Members
Constructors
Creates a drawing context that uses the supplied graphics surface without taking ownership of it.
public GDIPaintingContext(Graphics graphics)
The graphics surface used for drawing.
Methods
Outlines an ellipse inscribed in the specified rectangle.
public override void DrawEllipse(RectangleF rectangle, Pen pen)
The rectangle that bounds the ellipse.
penPenThe pen used to draw the outline.
Overrides:
Draws an image into the specified destination rectangle using the requested opacity.
public override void DrawImage(Image image, RectangleF rectangle, double opacity)
The image to draw.
rectangleRectangleFThe destination rectangle.
opacitydoubleThe opacity factor passed to the drawing implementation.
Overrides:
Attempts to draw a path but currently submits an empty GraphicsPath; the supplied points are not added, so this implementation draws no path.
Outlines a rectangle with a pen.
public override void DrawRectangle(RectangleF rectangle, Pen pen)
The rectangle to outline.
penPenThe pen used to draw the outline.
Overrides:
Fills an ellipse inscribed in the specified rectangle.
public override void FillEllipse(RectangleF rectanlge, Brush color)
Overrides:
Fills a rectangle with a brush.
public override void FillRectangle(RectangleF rectanlge, Brush color)
Overrides:
Inverts the colors in the specified rectangle.
public override void InvertRectangle(RectangleF rectangle)
The rectangle whose colors are inverted.
Overrides:
Resets the derived drawing surface's transformation.
protected override void ResetTransformationOverride()
Overrides: