[]
        
(Showing Draft Content)

GrapeCity.Documents.Drawing.GcGraphics.DrawSvgContent

DrawSvgContent Method

DrawSvgContent(GcSvgDocument, PointF, float)

Draws the content of a specified SVG document at a point specifying the top-left corner of the SVG content.

To specify the position of the SVG viewport rather than content, see DrawSvg(GcSvgDocument, PointF, float).

Declaration
public void DrawSvgContent(GcSvgDocument svgDocument, PointF contentPosition, float opacity = 1)
Public Sub DrawSvgContent(svgDocument As GcSvgDocument, contentPosition As PointF, Optional opacity As Single = 1)
Parameters
Type Name Description
GcSvgDocument svgDocument

The SVG document to draw.

PointF contentPosition

The coordinates for the top-left corner of the SVG content.

float opacity

The opacity factor to be applied to the SVG content.

DrawSvgContent(GcSvgDocument, RectangleF, float)

Draws the content of a specified SVG document, resizing the content to fit into a specified rectangle.

To draw the SVG resizing its viewport rather than just the content, see DrawSvg(GcSvgDocument, RectangleF, float).

Declaration
public void DrawSvgContent(GcSvgDocument svgDocument, RectangleF contentRect, float opacity = 1)
Public Sub DrawSvgContent(svgDocument As GcSvgDocument, contentRect As RectangleF, Optional opacity As Single = 1)
Parameters
Type Name Description
GcSvgDocument svgDocument

The SVG document to draw.

RectangleF contentRect

The target rectangle for the SVG content.

float opacity

The opacity factor to be applied to the SVG content.