IGraphics Interface

Defines methods for a native system drawing surface encapsulation.

Definition

Namespace: SMath.Drawing
Assembly: SMath.Drawing (in SMath.Drawing.dll) Version: 1.4.0.0
C#
public interface IGraphics : IDisposable
Implements
IDisposable

Properties

ClipBounds Current clipping rectangle.
Dpi Current application DPI.

Methods

Clear Clears the entire drawing surface and fills it with the specified background color.
DisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable)
DrawBezier Draws a Bézier spline defined by four PointF structures.
DrawEllipse Draws an ellipse defined by a bounding rectangle specified by a pair of coordinates, a height, and a width.
DrawImage Draws the specified portion of the specified Image at the specified location and with the specified size.
DrawLine Draws a line connecting the two points specified by the coordinate pairs.
DrawPath Draws a PathStep array.
DrawPolyline Draws a polyline defined by an array of Point structures.
DrawRectangle Draws a rectangle specified by a coordinate pair, a width, and a height.
DrawRoundedRectangle Draws a rounded rectangle specified by a coordinate pair, a width, and a height.
DrawString Draws the specified text string at the specified location with the specified ColorBrush and FontInfo objects using the formatting attributes of the specified StringOptions.
FillBezier Fills a Bézier spline defined by four PointF structures.
FillEllipse Fills the interior of an ellipse defined by a bounding rectangle specified by a pair of coordinates, a width, and a height.
FillPath Fills the interior of a PathStep array.
FillPolyline Fills the interior of a polyline defined by an array of points specified by Point structures.
FillRectangle Fills the interior of a rectangle specified by a pair of coordinates, a width, and a height.
FillRoundedRectangle Fills the interior of a rounded rectangle specified by a pair of coordinates, a width, and a height.
MeasureString Measures the specified string when drawn with the specified FontInfo and formatted with the specified StringOptions.
Restore Sets the state of the current graphics object to what it was when SMath.Manager.IGraphics.Save was last called.
Rotate Applies the specified rotation to the transformation matrix.
Save Stores state of the current graphics object.
SaveAndClip Stores state of the current graphics object and sets the clipping rectangle afterwards.
Scale Applies the specified scaling operation to the transformation matrix by prepending it to the object's transformation matrix.
Translate Translates the whole region by specified amounts in the horizontal and vertical directions.
Unwrap<T> Returns native surface object.

Extension Methods

DrawEllipse Draws an ellipse specified by a bounding RectangleF structure.
(Defined by GraphicsExtensions)
DrawImage Draws the specified portion of the specified Image at the specified location.
(Defined by GraphicsExtensions)
DrawImage Draws the specified portion of the specified Image at the specified location.
(Defined by GraphicsExtensions)
DrawImage Draws the specified portion of the specified Image at the specified location.
(Defined by GraphicsExtensions)
DrawLine Draws a line connecting the two points specified by the coordinate pairs.
(Defined by GraphicsExtensions)
DrawPath Draws a PathStep array.
(Defined by GraphicsExtensions)
DrawRectangle Draws a rectangle specified by a RectangleF structure.
(Defined by GraphicsExtensions)
DrawRoundedRectangle Draws a rounded rectangle specified by rectangle bounds.
(Defined by GraphicsExtensions)
DrawString Draws the specified text string at the specified location with the specified ColorBrush and FontInfo objects.
(Defined by GraphicsExtensions)
DrawString Draws the specified text string at the specified location with the specified ColorBrush and FontInfo objects using the formatting attributes of the specified StringOptions.
(Defined by GraphicsExtensions)
DrawSvgPath Draws an SVG path. The following instructions supported: hHmMlLaAqQcCtTsSvVzZ. Limitation: - Only one argument can be used for hHvV.
(Defined by GraphicsExtensions)
FillEllipse Fills the interior of an ellipse defined by a bounding rectangle specified by a RectangleF structure.
(Defined by GraphicsExtensions)
FillPath Fills the interior of a PathStep array.
(Defined by GraphicsExtensions)
FillRectangle Fills the interior of a rectangle specified by a RectangleF structure.
(Defined by GraphicsExtensions)
FillRoundedRectangle Fills the interior of a rounded rectangle specified by rectangle bounds.
(Defined by GraphicsExtensions)
FillSvgPath Fills an SVG path. The following instructions supported: hHmMlLaAqQcCtTsSvVzZ. Limitation: - Only one argument can be used for hHvV. Note: - Using of zZ have no sense as path will be rendered closed for filling automatically.
(Defined by GraphicsExtensions)
MeasureString Measures the specified string when drawn with the specified FontInfo.
(Defined by GraphicsExtensions)
Scale Applies the specified scaling operation to the transformation matrix of this IGraphics by prepending it to the object's transformation matrix.
(Defined by GraphicsExtensions)

See Also