Document Solutions for PDF
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Drawing Namespace / GcGraphics Class / DrawSvg Method / DrawSvg(GcSvgDocument,RectangleF,Single) Method
The SVG document to draw.
The target rectangle for the SVG viewport.
The opacity factor to be applied to the SVG content.

In This Topic
    DrawSvg(GcSvgDocument,RectangleF,Single) Method
    In This Topic
    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,Single).

    Syntax
    'Declaration
     
    Public Overloads Sub DrawSvg( _
       ByVal svgDocument As GcSvgDocument, _
       ByVal viewportRect As System.Drawing.RectangleF, _
       Optional ByVal opacity As System.Single _
    ) 
    public void DrawSvg( 
       GcSvgDocument svgDocument,
       System.Drawing.RectangleF viewportRect,
       System.float opacity
    )

    Parameters

    svgDocument
    The SVG document to draw.
    viewportRect
    The target rectangle for the SVG viewport.
    opacity
    The opacity factor to be applied to the SVG content.
    See Also