MetaImageBase
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.editor.htmlcss.resources.images.vector.VectorImageResourceBase
public abstract class MetaImageBase extends VectorImageResourceBase
Base abstract class for WMF and EMF image formats
| Constructor | Description |
|---|---|
| MetaImageBase(String name, String contentInBase64, boolean isWmf) | Common constructor, which prepares a creating a WMF or EMF instance from base64-encoded string |
| MetaImageBase(String name, InputStream binaryContent, boolean isWmf) | Common constructor, which prepares a creating a WMF or EMF instance from byte stream |
| Method | Description |
|---|---|
| isValidWmf(InputStream binaryContent) | Determines whether specified byte stream contains a valid WMF image |
| isValidWmf(String contentInBase64) | Determines whether specified string contains a valid WMF image, which is encoded with base64 |
| isValidEmf(InputStream binaryContent) | Determines whether specified byte stream contains a valid EMF image |
| isValidEmf(String contentInBase64) | Determines whether specified string contains a valid EMF image, which is encoded with base64 |
| saveToSvg(OutputStream outputSvgContent) | In implementing type should save a current vector meta-image to the vector SVG format into specified byte stream |
public MetaImageBase(String name, String contentInBase64, boolean isWmf)
Common constructor, which prepares a creating a WMF or EMF instance from base64-encoded string
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | java.lang.String | Mandatory name |
| contentInBase64 | java.lang.String | Content as base64 string. Should be not NULL or empty. |
| isWmf | boolean | true for WMF, false for EMF |
public MetaImageBase(String name, InputStream binaryContent, boolean isWmf)
Common constructor, which prepares a creating a WMF or EMF instance from byte stream
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | java.lang.String | Mandatory name |
| binaryContent | java.io.InputStream | Content as byte stream. Should be valid. |
| isWmf | boolean | true for WMF, false for EMF |
public static boolean isValidWmf(InputStream binaryContent)
Determines whether specified byte stream contains a valid WMF image
Parameters:
| Parameter | Type | Description |
|---|---|---|
| binaryContent | java.io.InputStream | Input byte stream. Should be valid. |
Returns: boolean - Returns ’true’ if valid and ‘false’ if invalid
public static boolean isValidWmf(String contentInBase64)
Determines whether specified string contains a valid WMF image, which is encoded with base64
Parameters:
| Parameter | Type | Description |
|---|---|---|
| contentInBase64 | java.lang.String | String, which is assumed to contain a base64-encoded WMF image |
Returns: boolean - Returns ’true’ if valid and ‘false’ if invalid
public static boolean isValidEmf(InputStream binaryContent)
Determines whether specified byte stream contains a valid EMF image
Parameters:
| Parameter | Type | Description |
|---|---|---|
| binaryContent | java.io.InputStream | Input byte stream. Should be valid. |
Returns: boolean - Returns ’true’ if valid and ‘false’ if invalid
public static boolean isValidEmf(String contentInBase64)
Determines whether specified string contains a valid EMF image, which is encoded with base64
Parameters:
| Parameter | Type | Description |
|---|---|---|
| contentInBase64 | java.lang.String | String, which is assumed to contain a base64-encoded EMF image |
Returns: boolean - Returns ’true’ if valid and ‘false’ if invalid
public abstract void saveToSvg(OutputStream outputSvgContent)
In implementing type should save a current vector meta-image to the vector SVG format into specified byte stream
Parameters:
| Parameter | Type | Description |
|---|---|---|
| outputSvgContent | java.io.OutputStream | Byte stream, into which the SVG version of this vector meta-image will be stored. Should not be NULL and should support writing. |
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.