TTMSFNCGraphicsSVGEngine Class
SVG-based graphics context that records drawing operations as SVG markup instead of rendering to a pixel canvas.
API unit family: TMSFNCGraphicsSVGEngine
Inherits from: TTMSFNCGraphics
Syntax
TTMSFNCGraphicsSVGEngine = class(TTMSFNCGraphics)
Properties
| Name | Description |
|---|---|
| SVG | Provides read access to the raw SVG lines as they are generated. |
Methods
| Name | Description |
|---|---|
| BeginPrinting | Signals the start of a print pass; initializes the SVG output buffer. |
| BeginScene | Begins an SVG drawing scene and returns True when the scene is ready to accept drawing commands. |
| Build | Returns the accumulated SVG markup as a string. |
| ClipRect | Clips subsequent drawing to the specified rectangle using an SVG clipPath element. |
| DrawArc | Emits an SVG arc segment as a <path> element. |
| DrawBitmap | Embeds a bitmap into the SVG output as a <image> element encoded in base-64. |
| DrawEllipse | Emits an SVG <ellipse> element bounded by the given coordinates. |
| DrawLine | Emits an SVG <line> element between two points. |
| DrawPath | Emits an SVG <path> element from the given path object. |
| DrawPolygon | Emits an SVG <polygon> element for a closed shape. |
| DrawPolyline | Emits an SVG <polyline> element for an open shape. |
| DrawRectangle | Emits an SVG <rect> element using all four sides. |
| DrawRoundRectangle | Emits an SVG rounded rectangle using a <rect> element with rx/ry attributes. |
| EndPrinting | Signals the end of a print pass and finalizes the SVG output. |
| EndScene | Ends the current SVG drawing scene and finalizes the accumulated markup. |
| GetMatrix | Returns the current transformation matrix of the SVG context. |
| ResetTextAngle | Resets the text rotation applied by a previous call to SetTextAngle. |
| RestoreState | Restores a previously saved graphics state. |
| SaveState | Saves the current graphics state and returns a snapshot that can be passed to RestoreState. |
| SetFill | Applies a fill definition to the current SVG rendering state. |
| SetFillColor | Sets the solid fill color in the current SVG rendering state. |
| SetFillKind | Sets the fill kind (solid, gradient, none, etc.) in the current SVG rendering state. |
| SetFont | Applies a complete font definition to the current SVG rendering state. |
| SetFontColor | Sets the text color in the current SVG rendering state. |
| SetFontName | Sets the font family name in the current SVG rendering state. |
| SetFontSize | Sets the font size in points in the current SVG rendering state. |
| SetFontStyles | Sets the font style flags (bold, italic, etc.) in the current SVG rendering state. |
| SetMatrix | Sets the transformation matrix applied to subsequent SVG drawing operations. |
| SetStroke | Applies a stroke definition to the current SVG rendering state. |
| SetStrokeColor | Sets the stroke color in the current SVG rendering state. |
| SetStrokeKind | Sets the stroke kind (solid, none, etc.) in the current SVG rendering state. |
| SetStrokeWidth | Sets the stroke line width in the current SVG rendering state. |
| SetTextAngle | Applies a rotation angle for subsequent text drawing and returns the adjusted rectangle. |