Graphics Class
Namespace: Stimulsoft.Drawing
Inheritance
Implements: IDisposable
Properties
| Property | Type | Description |
|---|---|---|
GraphicsEngine static |
GraphicsEngine | |
SixLaborsFontsKerning static |
bool |
Methods
| Method | Returns | Description |
|---|---|---|
| Clear | void | |
| Dispose | void | |
| DrawArc (+1 overloads) | void | |
| DrawCurve (+1 overloads) | void | |
| DrawEllipse (+3 overloads) | void | |
| DrawImage (+14 overloads) | void | |
| DrawImageUnscaled (+3 overloads) | void | |
| DrawImageUnscaledAndClipped | void | |
| DrawLine (+3 overloads) | void | |
| DrawLines (+1 overloads) | void | |
| DrawPath | void | |
| DrawPie | void | |
| DrawPolygon | void | |
| DrawRectangle (+2 overloads) | void | |
| DrawString (+5 overloads) | void | |
| EnumerateMetafile | void | |
| FillEllipse (+3 overloads) | void | |
| FillPath | void | |
| FillPie | void | |
| FillPolygon | void | |
| FillRectangle (+3 overloads) | void | |
| FillRegion | void | |
| Flush | void | |
FromHdc static |
Graphics | |
FromHwnd static |
Graphics | |
FromImage static |
Graphics | |
| GetHdc | IntPtr | |
| MeasureCharacterRanges | Region[] | |
| MeasureString (+5 overloads) | SizeF | |
| MultiplyTransform | void | |
| ReleaseHdc (+1 overloads) | void | |
| ResetClip | void | |
| ResetTransform | void | |
| Restore | void | |
| RotateTransform (+1 overloads) | void | |
| Save | GraphicsState | |
| ScaleTransform (+1 overloads) | void | |
| SetClip (+5 overloads) | void | |
| TransformPoints | void | |
| TranslateTransform (+3 overloads) | void |
Method Details
Clear
Clear(color: Color): void
Parameters
- color (Color)
Dispose
Dispose(): void
DrawArc
DrawArc(pen: Pen, rect: RectangleF, startAngle: float, sweepAngle: float): void
Parameters
- pen (Pen)
- rect (RectangleF)
- startAngle (float)
- sweepAngle (float)
DrawArc(pen: Pen, x: float, y: float, width: float, height: float, startAngle: float, sweepAngle: float): void
Parameters
- pen (Pen)
- x (float)
- y (float)
- width (float)
- height (float)
- startAngle (float)
- sweepAngle (float)
DrawCurve
DrawCurve(pen: Pen, **: PointFpoints): void
Parameters
- pen (Pen)
- ** (PointFpoints)
DrawCurve(pen: Pen, **: PointFpoints, **tension: float): void
Parameters
- pen (Pen)
- ** (PointFpoints)
- tension (float)
DrawEllipse
DrawEllipse(pen: Pen, rect: Rectangle): void
Parameters
- pen (Pen)
- rect (Rectangle)
DrawEllipse(pen: Pen, rect: RectangleF): void
Parameters
- pen (Pen)
- rect (RectangleF)
DrawEllipse(pen: Pen, x: int, y: int, width: int, height: int): void
Parameters
- pen (Pen)
- x (int)
- y (int)
- width (int)
- height (int)
DrawEllipse(pen: Pen, x: float, y: float, width: float, height: float): void
Parameters
- pen (Pen)
- x (float)
- y (float)
- width (float)
- height (float)
DrawImage
DrawImage(image: Image, rect: Rectangle): void
Parameters
- image (Image)
- rect (Rectangle)
DrawImage(image: Image, rect: RectangleF): void
Parameters
- image (Image)
- rect (RectangleF)
DrawImage(image: Image, **: PointFdestPoints, **srcRect: RectangleF, srcUnit: GraphicsUnit, imageAttr: ImageAttributes): void
Parameters
- image (Image)
- ** (PointFdestPoints)
- srcRect (RectangleF)
- srcUnit (GraphicsUnit)
- imageAttr (ImageAttributes)
DrawImage(image: Image, point: Point): void
Parameters
- image (Image)
- point (Point)
DrawImage(image: Image, x: float, y: float): void
Parameters
- image (Image)
- x (float)
- y (float)
DrawImage(image: Image, x: int, y: int): void
Parameters
- image (Image)
- x (int)
- y (int)
DrawImage(image: Image, destRect: Rectangle, srcRect: Rectangle, srcUnit: GraphicsUnit): void
Parameters
- image (Image)
- destRect (Rectangle)
- srcRect (Rectangle)
- srcUnit (GraphicsUnit)
DrawImage(image: Image, destRect: RectangleF, srcRect: RectangleF, srcUnit: GraphicsUnit): void
Parameters
- image (Image)
- destRect (RectangleF)
- srcRect (RectangleF)
- srcUnit (GraphicsUnit)
DrawImage(image: Image, x: float, y: float, srcRect: Rectangle, srcUnit: GraphicsUnit): void
Parameters
- image (Image)
- x (float)
- y (float)
- srcRect (Rectangle)
- srcUnit (GraphicsUnit)
DrawImage(image: Image, destRect: Rectangle, srcX: int, srcY: int, srcWidth: int, srcHeight: int, srcUnit: GraphicsUnit): void
Parameters
- image (Image)
- destRect (Rectangle)
- srcX (int)
- srcY (int)
- srcWidth (int)
- srcHeight (int)
- srcUnit (GraphicsUnit)
DrawImage(image: Image, x: float, y: float, width: float, height: float): void
Parameters
- image (Image)
- x (float)
- y (float)
- width (float)
- height (float)
DrawImage(image: Image, x: int, y: int, width: int, height: int): void
Parameters
- image (Image)
- x (int)
- y (int)
- width (int)
- height (int)
DrawImage(image: Image, destRect: Rectangle, srcX: float, srcY: float, srcWidth: float, srcHeight: float, srcUnit: GraphicsUnit, imageAttr: ImageAttributes): void
Parameters
- image (Image)
- destRect (Rectangle)
- srcX (float)
- srcY (float)
- srcWidth (float)
- srcHeight (float)
- srcUnit (GraphicsUnit)
- imageAttr (ImageAttributes)
DrawImage(image: Image, destRect: Rectangle, srcX: int, srcY: int, srcWidth: int, srcHeight: int, srcUnit: GraphicsUnit, imageAttr: ImageAttributes): void
Parameters
- image (Image)
- destRect (Rectangle)
- srcX (int)
- srcY (int)
- srcWidth (int)
- srcHeight (int)
- srcUnit (GraphicsUnit)
- imageAttr (ImageAttributes)
DrawImage(image: Image, destRect: Rectangle, srcX: int, srcY: int, srcWidth: int, srcHeight: int, srcUnit: GraphicsUnit, imageAttrs: ImageAttributes, callback: object, callbackData: IntPtr): void
Parameters
- image (Image)
- destRect (Rectangle)
- srcX (int)
- srcY (int)
- srcWidth (int)
- srcHeight (int)
- srcUnit (GraphicsUnit)
- imageAttrs (ImageAttributes)
- callback (object)
- callbackData (IntPtr)
DrawImageUnscaled
DrawImageUnscaled(image: Image, rect: Rectangle): void
Parameters
- image (Image)
- rect (Rectangle)
DrawImageUnscaled(image: Image, point: Point): void
Parameters
- image (Image)
- point (Point)
DrawImageUnscaled(image: Image, x: int, y: int): void
Parameters
- image (Image)
- x (int)
- y (int)
DrawImageUnscaled(image: Image, x: int, y: int, width: int, height: int): void
Parameters
- image (Image)
- x (int)
- y (int)
- width (int)
- height (int)
DrawImageUnscaledAndClipped
DrawImageUnscaledAndClipped(image: Image, rect: Rectangle): void
Parameters
- image (Image)
- rect (Rectangle)
DrawLine
DrawLine(pen: Pen, pt1: Point, pt2: Point): void
Parameters
- pen (Pen)
- pt1 (Point)
- pt2 (Point)
DrawLine(pen: Pen, pt1: PointF, pt2: PointF): void
Parameters
- pen (Pen)
- pt1 (PointF)
- pt2 (PointF)
DrawLine(pen: Pen, x1: int, y1: int, x2: int, y2: int): void
Parameters
- pen (Pen)
- x1 (int)
- y1 (int)
- x2 (int)
- y2 (int)
DrawLine(pen: Pen, x1: float, y1: float, x2: float, y2: float): void
Parameters
- pen (Pen)
- x1 (float)
- y1 (float)
- x2 (float)
- y2 (float)
DrawLines
DrawLines(pen: Pen, **: Pointpoints): void
Parameters
- pen (Pen)
- ** (Pointpoints)
DrawLines(pen: Pen, **: PointFpoints): void
Parameters
- pen (Pen)
- ** (PointFpoints)
DrawPath
DrawPath(pen: Pen, path: GraphicsPath): void
Parameters
- pen (Pen)
- path (GraphicsPath)
DrawPie
DrawPie(pen: Pen, rect: RectangleF, startAngle: float, sweepAngle: float): void
Parameters
- pen (Pen)
- rect (RectangleF)
- startAngle (float)
- sweepAngle (float)
DrawPolygon
DrawPolygon(pen: Pen, **: PointFpoints): void
Parameters
- pen (Pen)
- ** (PointFpoints)
DrawRectangle
DrawRectangle(pen: Pen, rect: Rectangle): void
Parameters
- pen (Pen)
- rect (Rectangle)
DrawRectangle(pen: Pen, x: int, y: int, width: int, height: int): void
Parameters
- pen (Pen)
- x (int)
- y (int)
- width (int)
- height (int)
DrawRectangle(pen: Pen, x: float, y: float, width: float, height: float): void
Parameters
- pen (Pen)
- x (float)
- y (float)
- width (float)
- height (float)
DrawString
DrawString(s: string, font: Font, brush: Brush, layoutRectangle: RectangleF): void
Parameters
DrawString(s: string, font: Font, brush: Brush, point: PointF): void
Parameters
DrawString(s: string, font: Font, brush: Brush, point: PointF, format: StringFormat): void
Parameters
- s (string)
- font (Font)
- brush (Brush)
- point (PointF)
- format (StringFormat)
DrawString(s: string, font: Font, brush: Brush, x: float, y: float): void
Parameters
DrawString(s: string, font: Font, brush: Brush, x: float, y: float, format: StringFormat): void
Parameters
- s (string)
- font (Font)
- brush (Brush)
- x (float)
- y (float)
- format (StringFormat)
DrawString(s: string, font: Font, brush: Brush, layoutRectangle: RectangleF, format: StringFormat): void
Parameters
- s (string)
- font (Font)
- brush (Brush)
- layoutRectangle (RectangleF)
- format (StringFormat)
EnumerateMetafile
EnumerateMetafile(metafile: Metafile, m_destPoint: Point, m_delegate: EnumerateMetafileProc): void
Parameters
- metafile (Metafile)
- m_destPoint (Point)
- m_delegate (EnumerateMetafileProc)
FillEllipse
FillEllipse(brush: Brush, rect: Rectangle): void
Parameters
- brush (Brush)
- rect (Rectangle)
FillEllipse(brush: Brush, rect: RectangleF): void
Parameters
- brush (Brush)
- rect (RectangleF)
FillEllipse(brush: Brush, x: int, y: int, width: int, height: int): void
Parameters
- brush (Brush)
- x (int)
- y (int)
- width (int)
- height (int)
FillEllipse(brush: Brush, x: float, y: float, width: float, height: float): void
Parameters
- brush (Brush)
- x (float)
- y (float)
- width (float)
- height (float)
FillPath
FillPath(brush: Brush, path: GraphicsPath): void
Parameters
- brush (Brush)
- path (GraphicsPath)
FillPie
FillPie(brush: Brush, x: float, y: float, width: float, height: float, startAngle: float, sweepAngle: float): void
Parameters
- brush (Brush)
- x (float)
- y (float)
- width (float)
- height (float)
- startAngle (float)
- sweepAngle (float)
FillPolygon
FillPolygon(brush: Brush, **: PointFpoints): void
Parameters
- brush (Brush)
- ** (PointFpoints)
FillRectangle
FillRectangle(brush: Brush, rect: RectangleF): void
Parameters
- brush (Brush)
- rect (RectangleF)
FillRectangle(brush: Brush, rect: Rectangle): void
Parameters
- brush (Brush)
- rect (Rectangle)
FillRectangle(brush: Brush, x: int, y: int, width: int, height: int): void
Parameters
- brush (Brush)
- x (int)
- y (int)
- width (int)
- height (int)
FillRectangle(brush: Brush, x: float, y: float, width: float, height: float): void
Parameters
- brush (Brush)
- x (float)
- y (float)
- width (float)
- height (float)
FillRegion
FillRegion(brush: Brush, region: Region): void
Parameters
Flush
Flush(): void
FromHdc static
FromHdc(hdc: IntPtr): Graphics
Parameters
- hdc (IntPtr)
Returns Graphics
FromHwnd static
FromHwnd(handle: IntPtr): Graphics
Parameters
- handle (IntPtr)
Returns Graphics
FromImage static
FromImage(image: Image): Graphics
Parameters
- image (Image)
Returns Graphics
GetHdc
GetHdc(): IntPtr
Returns IntPtr
MeasureCharacterRanges
MeasureCharacterRanges(text: string, font: Font, layoutRectangle: RectangleF, format: StringFormat): Region[]
Parameters
- text (string)
- font (Font)
- layoutRectangle (RectangleF)
- format (StringFormat)
Returns Region[]
MeasureString
MeasureString(text: string, font: Font): SizeF
Parameters
- text (string)
- font (Font)
Returns SizeF
MeasureString(text: string, font: Font, layoutArea: SizeF): SizeF
Parameters
- text (string)
- font (Font)
- layoutArea (SizeF)
Returns SizeF
MeasureString(text: string, font: Font, width: int): SizeF
Parameters
- text (string)
- font (Font)
- width (int)
Returns SizeF
MeasureString(text: string, font: Font, layoutArea: SizeF, stringFormat: StringFormat): SizeF
Parameters
- text (string)
- font (Font)
- layoutArea (SizeF)
- stringFormat (StringFormat)
Returns SizeF
MeasureString(text: string, font: Font, width: int, stringFormat: StringFormat): SizeF
Parameters
- text (string)
- font (Font)
- width (int)
- stringFormat (StringFormat)
Returns SizeF
MeasureString(text: string, font: Font, layoutArea: SizeF, stringFormat: StringFormat, charactersFitted: int, linesFilled: int): SizeF
Parameters
- text (string)
- font (Font)
- layoutArea (SizeF)
- stringFormat (StringFormat)
- charactersFitted (int)
- linesFilled (int)
Returns SizeF
MultiplyTransform
MultiplyTransform(matrix: Matrix): void
Parameters
- matrix (Matrix)
ReleaseHdc
ReleaseHdc(): void
ReleaseHdc(ptrGraphics: IntPtr): void
Parameters
- ptrGraphics (IntPtr)
ResetClip
ResetClip(): void
ResetTransform
ResetTransform(): void
Restore
Restore(state: GraphicsState): void
Parameters
- state (GraphicsState)
RotateTransform
RotateTransform(angle: float): void
Parameters
- angle (float)
RotateTransform(angle: float, order: System.Drawing.Drawing2D.MatrixOrder): void
Parameters
- angle (float)
- order (System.Drawing.Drawing2D.MatrixOrder)
Save
Save(): GraphicsState
Returns GraphicsState
ScaleTransform
ScaleTransform(scaleX: float, scaleY: float): void
Parameters
- scaleX (float)
- scaleY (float)
ScaleTransform(scaleX: float, scaleY: float, order: System.Drawing.Drawing2D.MatrixOrder): void
Parameters
- scaleX (float)
- scaleY (float)
- order (System.Drawing.Drawing2D.MatrixOrder)
SetClip
SetClip(region: Region, intersect: System.Drawing.Drawing2D.CombineMode): void
Parameters
- region (Region)
- intersect (System.Drawing.Drawing2D.CombineMode)
SetClip(rect: Rectangle, intersect: System.Drawing.Drawing2D.CombineMode): void
Parameters
- rect (Rectangle)
- intersect (System.Drawing.Drawing2D.CombineMode)
SetClip(rect: RectangleF): void
Parameters
- rect (RectangleF)
SetClip(rect: RectangleF, intersect: System.Drawing.Drawing2D.CombineMode): void
Parameters
- rect (RectangleF)
- intersect (System.Drawing.Drawing2D.CombineMode)
SetClip(path: GraphicsPath): void
Parameters
- path (GraphicsPath)
SetClip(path: GraphicsPath, intersect: System.Drawing.Drawing2D.CombineMode): void
Parameters
- path (GraphicsPath)
- intersect (System.Drawing.Drawing2D.CombineMode)
TransformPoints
TransformPoints(page: System.Drawing.Drawing2D.CoordinateSpace, device: System.Drawing.Drawing2D.CoordinateSpace, **: PointFpoints): void
Parameters
- page (System.Drawing.Drawing2D.CoordinateSpace)
- device (System.Drawing.Drawing2D.CoordinateSpace)
- ** (PointFpoints)
TranslateTransform
TranslateTransform(x: int, y: int): void
Parameters
- x (int)
- y (int)
TranslateTransform(x: int, y: int, order: System.Drawing.Drawing2D.MatrixOrder): void
Parameters
- x (int)
- y (int)
- order (System.Drawing.Drawing2D.MatrixOrder)
TranslateTransform(x: float, y: float): void
Parameters
- x (float)
- y (float)
TranslateTransform(x: float, y: float, order: System.Drawing.Drawing2D.MatrixOrder): void
Parameters
- x (float)
- y (float)
- order (System.Drawing.Drawing2D.MatrixOrder)
Fields
| Field | Type | Description |
|---|---|---|
| DefaultImageSharpDpi | float | |
| DefaultTabSize | int | |
| ReplaceTabWithSpaces | bool |