GDIPaintingContext
Implements Spreadsheet painting operations with a GDI+ Graphics surface. This implementation does not populate ClipBounds from the graphics clip.
Definition
Namespace:Telerik.WinControls.Spreadsheet.UI
Assembly:Telerik.WinControls.RadSpreadsheet.dll
Syntax:
public class GDIPaintingContext : PaintingContext, IPaintingContext
Inheritance: objectPaintingContextGDIPaintingContext
Implements:
Inherited Members
Constructors
Creates a painting context for the specified graphics surface.
public GDIPaintingContext(Graphics graphics)
The graphics surface used for drawing.
Properties
Methods
Draws the outline of the ellipse inscribed in the specified rectangle.
public override void DrawEllipse(RectangleF rectangle, Pen pen)
The bounds of the ellipse.
penPenThe pen used to draw the outline.
Overrides:
Draws an image into a destination rectangle using the specified opacity.
public override void DrawImage(Image image, RectangleF rectangle, double opacity)
The image to draw.
rectangleRectangleFThe destination bounds.
opacitydoubleThe opacity passed to the drawing backend.
Overrides:
When
opacityis less than 1, this method uses GDI+ image attributes to apply it. Otherwise, it draws through the standard opaque image overload.
Draws a straight line between two points.
public override void DrawLine(PointF startPoint, PointF endPoint, Pen pen)
The line's starting point.
endPointPointFThe line's ending point.
penPenThe pen used to draw the line.
Overrides:
A custom dash style changes the graphics surface's SmoothingMode to HighQuality; the previous mode is not restored.
Draws connected line segments through the supplied points.
public override void DrawLines(PointF[] points, Pen pen)
The pen used to draw the segments.
Overrides:
A custom dash style changes the graphics surface's SmoothingMode to HighQuality; the previous mode is not restored.
Draws the outline of the specified rectangle.
public override void DrawRectangle(RectangleF rectangle, Pen pen)
The rectangle to outline.
penPenThe pen used to draw the outline.
Overrides:
Fills the ellipse inscribed in the specified rectangle.
public override void FillEllipse(RectangleF rectanlge, Brush color)
Overrides:
Fills the specified rectangle with a brush.
public override void FillRectangle(RectangleF rectanlge, Brush color)
Overrides:
Inverts the rendered pixels within the specified rectangle.
public override void InvertRectangle(RectangleF rectangle)
The bounds of the pixels to invert.
Overrides:
Restores the backend's drawing surface to its untransformed state.
protected override void ResetTransformationOverride()
Overrides: