public abstract class MetaImageBase extends VectorImageResourceBase
Base abstract class for WMF and EMF image formats
Disposed
Constructor and Description |
---|
MetaImageBase(String name,
InputStream binaryContent,
boolean isWmf)
Common constructor, which prepares a creating a WMF or EMF instance from
byte stream
|
MetaImageBase(String name,
String contentInBase64,
boolean isWmf)
Common constructor, which prepares a creating a WMF or EMF instance from
base64-encoded string
|
Modifier and Type | Method and Description |
---|---|
static boolean |
isValidEmf(InputStream binaryContent)
Determines whether specified byte stream contains a valid EMF image
|
static boolean |
isValidEmf(String contentInBase64)
Determines whether specified string contains a valid EMF image, which is
encoded with base64
|
static boolean |
isValidWmf(InputStream binaryContent)
Determines whether specified byte stream contains a valid WMF image
|
static boolean |
isValidWmf(String contentInBase64)
Determines whether specified string contains a valid WMF image, which is
encoded with base64
|
abstract void |
saveToSvg(OutputStream outputSvgContent)
In implementing type should save a current vector meta-image to the
vector SVG format into specified byte stream
|
dispose, equals, getAspectRatio, getByteContent, getFilenameWithExtension, getLinearDimensions, getName, getTextContent, getType, isDisposed, save, saveToPng
public MetaImageBase(String name, InputStream binaryContent, boolean isWmf)
Common constructor, which prepares a creating a WMF or EMF instance from byte stream
name
- Mandatory namebinaryContent
- Content as byte stream. Should be valid.isWmf
- true for WMF, false for EMFpublic MetaImageBase(String name, String contentInBase64, boolean isWmf)
Common constructor, which prepares a creating a WMF or EMF instance from base64-encoded string
name
- Mandatory namecontentInBase64
- Content as base64 string. Should be not NULL or
empty.isWmf
- true for WMF, false for EMFpublic static boolean isValidEmf(InputStream binaryContent)
Determines whether specified byte stream contains a valid EMF image
binaryContent
- Input byte stream. Should be valid.public static boolean isValidEmf(String contentInBase64)
Determines whether specified string contains a valid EMF image, which is encoded with base64
contentInBase64
- String, which is assumed to contain a
base64-encoded EMF imagepublic static boolean isValidWmf(InputStream binaryContent)
Determines whether specified byte stream contains a valid WMF image
binaryContent
- Input byte stream. Should be valid.public static boolean isValidWmf(String contentInBase64)
Determines whether specified string contains a valid WMF image, which is encoded with base64
contentInBase64
- String, which is assumed to contain a
base64-encoded WMF imagepublic abstract void saveToSvg(OutputStream outputSvgContent) throws Exception
In implementing type should save a current vector meta-image to the vector SVG format into specified byte stream
outputSvgContent
- Byte stream, into which the SVG version of this
vector meta-image will be stored. Should not be NULL and should support
writing.Exception