GraphicsExtensions Class

Extension methods for IGraphics objects.

Definition

Namespace: SMath.Drawing
Assembly: SMath.Drawing (in SMath.Drawing.dll) Version: 1.4.0.0
C#
public static class GraphicsExtensions
Inheritance
Object    GraphicsExtensions

Methods

DrawEllipse Draws an ellipse specified by a bounding RectangleF structure.
DrawImage(IGraphics, IBitmap, PointF) Draws the specified portion of the specified Image at the specified location.
DrawImage(IGraphics, IBitmap, RectangleF) Draws the specified portion of the specified Image at the specified location.
DrawImage(IGraphics, IBitmap, Single, Single) Draws the specified portion of the specified Image at the specified location.
DrawLine Draws a line connecting the two points specified by the coordinate pairs.
DrawPath Draws a PathStep array.
Obsolete.
DrawRectangle Draws a rectangle specified by a RectangleF structure.
DrawRoundedRectangle Draws a rounded rectangle specified by rectangle bounds.
DrawString(IGraphics, String, FontInfo, ColorBrush, Single, Single) Draws the specified text string at the specified location with the specified ColorBrush and FontInfo objects.
DrawString(IGraphics, String, FontInfo, ColorBrush, Single, Single, StringOptions) Draws the specified text string at the specified location with the specified ColorBrush and FontInfo objects using the formatting attributes of the specified StringOptions.
DrawSvgPath Draws an SVG path. The following instructions supported: hHmMlLaAqQcCtTsSvVzZ. Limitation: - Only one argument can be used for hHvV.
FillEllipse Fills the interior of an ellipse defined by a bounding rectangle specified by a RectangleF structure.
FillPath Fills the interior of a PathStep array.
Obsolete.
FillRectangle Fills the interior of a rectangle specified by a RectangleF structure.
FillRoundedRectangle Fills the interior of a rounded rectangle specified by rectangle bounds.
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.
MeasureString Measures the specified string when drawn with the specified FontInfo.
Scale Applies the specified scaling operation to the transformation matrix of this IGraphics by prepending it to the object's transformation matrix.

See Also