[]
Creates a new GcSvgDocument from a specified SVG data stream.
The stream will be closed after reading the SVG data. To keep the stream open, use the FromStream(Stream, bool) overload and pass true in the leaveOpen parameter.
public static GcSvgDocument FromStream(Stream stream)
Public Shared Function FromStream(stream As Stream) As GcSvgDocument
Type | Name | Description |
---|---|---|
Stream | stream | The stream containing the SVG data. |
Type | Description |
---|---|
GcSvgDocument | The created SVG document. |
Creates a new GcSvgDocument from a specified SVG data stream, optionally leaving the stream open.
public static GcSvgDocument FromStream(Stream stream, bool leaveOpen)
Public Shared Function FromStream(stream As Stream, leaveOpen As Boolean) As GcSvgDocument
Type | Name | Description |
---|---|---|
Stream | stream | The stream containing the SVG data. |
bool | leaveOpen | true to leave the stream open after reading the data, false to close the stream. |
Type | Description |
---|---|
GcSvgDocument | The created SVG document. |