SvgImage
SvgImage class
Represents an SVG image.
SvgImage
| Name | Description |
|---|---|
| SvgImage(byte[]) | Creates new SvgImage object. |
Parameters:
| Name | Type | Description |
|---|---|---|
| data | byte[] | Svg data. |
Returns: SvgImage
SvgImage
| Name | Description |
|---|---|
| SvgImage(String) | Creates new SvgImage object. |
Parameters:
| Name | Type | Description |
|---|---|---|
| svgContent | String | Svg content. |
Returns: SvgImage
SvgImage
| Name | Description |
|---|---|
| SvgImage(InputStream) | Creates new SvgImage object. |
Parameters:
| Name | Type | Description |
|---|---|---|
| stream | InputStream | Svg stream. |
Returns: SvgImage
SvgImage
| Name | Description |
|---|---|
| SvgImage(byte[], HtmlExternalResolver, String) | Creates new SvgImage object. |
Parameters:
| Name | Type | Description |
|---|---|---|
| data | byte[] | Svg data. |
| externalResResolver | HtmlExternalResolver | A callback object used to fetch external objects. If this parameter is null all external objects will be ignored. |
| baseUri | String | Base URI of the specified Svg. Used to resolve relative links. |
Returns: SvgImage
SvgImage
| Name | Description |
|---|---|
| SvgImage(byte[], ExternalResourceResolver, String) | Creates new SvgImage object. |
Parameters:
| Name | Type | Description |
|---|---|---|
| data | byte[] | Svg data. |
| externalResResolver | ExternalResourceResolver | A callback object used to fetch external objects. If this parameter is null all external objects will be ignored. |
| baseUri | String | Base URI of the specified Svg. Used to resolve relative links. |
Returns: SvgImage
SvgImage
| Name | Description |
|---|---|
| SvgImage(String, HtmlExternalResolver, String) | Creates new SvgImage object. |
Parameters:
| Name | Type | Description |
|---|---|---|
| svgContent | String | Svg content. |
| externalResResolver | HtmlExternalResolver | A callback object used to fetch external objects. If this parameter is null all external objects will be ignored. |
| baseUri | String | Base URI of the specified Svg. Used to resolve relative links. |
Returns: SvgImage
SvgImage
| Name | Description |
|---|---|
| SvgImage(String, ExternalResourceResolver, String) | Creates new SvgImage object. |
Parameters:
| Name | Type | Description |
|---|---|---|
| svgContent | String | Svg content. |
| externalResResolver | ExternalResourceResolver | A callback object used to fetch external objects. If this parameter is null all external objects will be ignored. |
| baseUri | String | Base URI of the specified Svg. Used to resolve relative links. |
Returns: SvgImage
SvgImage
| Name | Description |
|---|---|
| SvgImage(InputStream, HtmlExternalResolver, String) | Creates new SvgImage object. |
Parameters:
| Name | Type | Description |
|---|---|---|
| stream | InputStream | Svg stream. |
| externalResResolver | HtmlExternalResolver | A callback object used to fetch external objects. If this parameter is null all external objects will be ignored. |
| baseUri | String | Base URI of the specified Svg. Used to resolve relative links. |
Returns: SvgImage
SvgImage
| Name | Description |
|---|---|
| SvgImage(InputStream, ExternalResourceResolver, String) | Creates new SvgImage object. |
Parameters:
| Name | Type | Description |
|---|---|---|
| stream | InputStream | Svg stream. |
| externalResResolver | ExternalResourceResolver | A callback object used to fetch external objects. If this parameter is null all external objects will be ignored. |
| baseUri | String | Base URI of the specified Svg. Used to resolve relative links. |
Returns: SvgImage
getBaseUri
| Name | Description |
|---|---|
| getBaseUri () | Returns base URI of the specified Svg. Used to resolve relative links. Read-only String. |
Returns: String
getExternalResourceResolver
| Name | Description |
|---|---|
| getExternalResourceResolver () | Return callback interface used to resolve external resources during Svg documents import. Read-only IExternalResourceResolver. |
Returns: HtmlExternalResolver, ExternalResourceResolver
getSvgContent
| Name | Description |
|---|---|
| getSvgContent () | Returns SVG content. Read-only String. |
Returns: String
getSvgData
| Name | Description |
|---|---|
| getSvgData () | Returns SVG data. Read-only byte[]. |
Returns: byte
writeAsEmf
| Name | Description |
|---|---|
| writeAsEmf (OutputStream) | Saves the SVG image as an EMF file. |
Parameters:
| Name | Type | Description |
|---|---|---|
| stream | OutputStream | Target stream |
Returns: void
Exception
| Error | Condition |
|---|---|
| ArgumentNullException | Target stream is null |