[]
Draws a specified SVG document at a point specifying the position of the SVG viewport.
To specify the position of the SVG content rather than viewport, see DrawSvgContent(GcSvgDocument, PointF, float).
public void DrawSvg(GcSvgDocument svgDocument, PointF viewportPosition, float opacity = 1)
Public Sub DrawSvg(svgDocument As GcSvgDocument, viewportPosition As PointF, Optional opacity As Single = 1)
Type | Name | Description |
---|---|---|
GcSvgDocument | svgDocument | The SVG document to draw. |
PointF | viewportPosition | The coordinates for drawing the top-left corner of the SVG viewport. |
float | opacity | The opacity factor to be applied to the SVG content. |
Draws a specified SVG document, resizing its viewport to fit into a specified rectangle.
To draw just the content of the SVG ignoring viewport position, see DrawSvgContent(GcSvgDocument, RectangleF, float).
public void DrawSvg(GcSvgDocument svgDocument, RectangleF viewportRect, float opacity = 1)
Public Sub DrawSvg(svgDocument As GcSvgDocument, viewportRect As RectangleF, Optional opacity As Single = 1)
Type | Name | Description |
---|---|---|
GcSvgDocument | svgDocument | The SVG document to draw. |
RectangleF | viewportRect | The target rectangle for the SVG viewport. |
float | opacity | The opacity factor to be applied to the SVG content. |