IPaintingContext
Provides the drawing operations used by Spreadsheet elements when painting through a graphics backend.
Definition
Namespace:Telerik.WinControls.Spreadsheet.UI
Assembly:Telerik.WinControls.RadSpreadsheet.dll
Syntax:
public interface IPaintingContext
Properties
Gets the clip bounds reported to painting code. A backend may leave these bounds empty when it does not query its graphics surface.
RectangleF ClipBounds { get; }
Gets the scale factors recorded by the most recent scale operation, or 1,1 after a reset.
SizeF ScaleFactor { get; }
Methods
Draws the outline of the ellipse inscribed in the specified rectangle.
void DrawEllipse(RectangleF rectangle, Pen pen)
The bounds of the ellipse.
penPenThe pen used to draw the outline.
Draws an image into a destination rectangle using the specified opacity.
void DrawImage(Image image, RectangleF rectangle, double opacity)
The image to draw.
rectangleRectangleFThe destination bounds.
opacitydoubleThe opacity passed to the drawing backend.
Draws the outline of the specified rectangle.
void DrawRectangle(RectangleF rectangle, Pen pen)
The rectangle to outline.
penPenThe pen used to draw the outline.
Fills the ellipse inscribed in the specified rectangle.
void FillEllipse(RectangleF rectangle, Brush brush)
The bounds of the ellipse.
brushBrushThe brush used to fill the ellipse.
Fills the specified rectangle with a brush.
void FillRectangle(RectangleF rectangle, Brush brush)
The rectangle to fill.
brushBrushThe brush used to fill the rectangle.
Inverts the rendered pixels within the specified rectangle.
void InvertRectangle(RectangleF rectangle)
The bounds of the pixels to invert.
Resets the drawing surface transformation and records a scale factor of 1,1.
void ResetTransformation()
Applies a scale to the drawing surface and records the supplied factors in ScaleFactor.