[]
        
(Showing Draft Content)

GrapeCity.Documents.Drawing.GcGraphics.DrawSvg

DrawSvg Method

DrawSvg(GcSvgDocument, PointF, float)

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).

Declaration
public void DrawSvg(GcSvgDocument svgDocument, PointF viewportPosition, float opacity = 1)
Parameters
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.

DrawSvg(GcSvgDocument, RectangleF, float)

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).

Declaration
public void DrawSvg(GcSvgDocument svgDocument, RectangleF viewportRect, float opacity = 1)
Parameters
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.