Note
When RGB flag is present in supportedFormats and the color is opaque,
this format has the highest priority.
public class Graphics : IGraphics, IDisposable
Public Class Graphics
Implements IGraphics, IDisposable
public ref class Graphics : IGraphics,
IDisposable
type Graphics =
class
interface IGraphics
interface IDisposable
end
Graphics | Constructor to create an Defines methods for a native system drawing surface encapsulation. object for the target platform. |
ClipBounds | Current clipping rectangle. |
Dpi | Current application DPI. |
Specifics | Implements IDrawingSpecifics for the .Net Framework platform. |
AddCustomFont | Adds custom font to allow its rendering. |
Clear | Clears the entire drawing surface and fills it with the specified background color. |
ColorToWebColor |
Converts Color to the corresponding RGB representation prefixed by #.
Obsolete. |
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. |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
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. |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
FormatColor | Converts the specified color to string using the most suitable of the supported formats. |
GetColorByName | Parses Color from is string representation. Falls back to Black unless colorName is recognized. Obsolete. |
GetHashCode | Serves as the default hash function. (Inherited from Object) |
GetType | Gets the Type of the current instance. (Inherited from Object) |
LoadChars | Loads chars from resources. |
MeasureString | Measures the specified string when drawn with the specified FontInfo and formatted with the specified StringOptions. |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
ParseColor | Parses Color from is string representation using any of the supported formats. Falls back to Black unless the input string is recognized. In addition to the formats mentioned in ColorFormats, the standard color names are recognized according to CSS Color Module Level 4 #named-colors (see https://developer.mozilla.org/en-US/docs/Web/CSS/named-color). Parsing of color names is case insensitive. |
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. |
ToString | Returns a string that represents the current object. (Inherited from Object) |
Translate | Translates the whole region by specified amounts in the horizontal and vertical directions. |
Unwrap<T> | Returns native surface object. |
WebColorToColor |
Converts Web color to ARGB value of the corresponding Color.
Obsolete. |
ContentDpi | Standard content DPI. |
EquationsFontName | Name of the font used to draw math specific operators and functions. |
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) |
IDisposable.Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |