VectorImageResourceBase
Leave feedback
On this page
Inheritance: java.lang.Object
All Implemented Interfaces: com.groupdocs.editor.htmlcss.resources.images.IImageResource
public abstract class VectorImageResourceBase implements IImageResource
Base class for any supported vector image
| Constructor | Description |
|---|---|
| VectorImageResourceBase() |
| Field | Description |
|---|---|
| Disposed |
| Method | Description |
|---|---|
| getName() | Returns name of this vector image. |
| getFilenameWithExtension() | Returns correct filename of this vector image, which consists of name and extension. |
| getAspectRatio() | Returns aspect ratio of this vector image |
| getLinearDimensions() | Returns linear dimensions of this vector image (width and height) |
| equals(IHtmlResource other) | Checks this instance with specified on reference equality. |
| isDisposed() | Determines whether this raster image is disposed or not |
| getType() | In implementing type should return information about type of the vector image |
| getByteContent() | In implementing type should return a content of this vector image as byte stream |
| getTextContent() | In implementing type should return a content of this vector image in text form: base64-encoded of XML regarding of image type |
| save(String fullPathToFile) | In implementing type should save this image to the disk by specified path |
| saveToPng(OutputStream outputPngContent) | In implementing type should save a current vector image to the raster PNG format into specified byte stream |
| dispose() | In implementing type should dispose this instance |
public VectorImageResourceBase()
public final Event<EventHandler> Disposed
public final String getName()
Returns name of this vector image. Usually doesn’t contain filename extension and theoretically can differ from filename.
Returns: java.lang.String
public final String getFilenameWithExtension()
Returns correct filename of this vector image, which consists of name and extension. Theoretically can differ from the name.
Returns: java.lang.String
public final Ratio getAspectRatio()
Returns aspect ratio of this vector image
Returns: Ratio
public final Dimensions getLinearDimensions()
Returns linear dimensions of this vector image (width and height)
Returns: Dimensions
public final boolean equals(IHtmlResource other)
Checks this instance with specified on reference equality.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| other | IHtmlResource | Other instance of vector image |
Returns: boolean - True if are equal, false if are unequal
public final boolean isDisposed()
Determines whether this raster image is disposed or not
Returns: boolean -
public abstract ImageType getType()
In implementing type should return information about type of the vector image
Returns: ImageType -
public InputStream getByteContent()
In implementing type should return a content of this vector image as byte stream
Returns: java.io.InputStream -
public abstract String getTextContent()
In implementing type should return a content of this vector image in text form: base64-encoded of XML regarding of image type
Returns: java.lang.String -
public abstract void save(String fullPathToFile)
In implementing type should save this image to the disk by specified path
Parameters:
| Parameter | Type | Description |
|---|---|---|
| fullPathToFile | java.lang.String |
public abstract void saveToPng(OutputStream outputPngContent)
In implementing type should save a current vector image to the raster PNG format into specified byte stream
Parameters:
| Parameter | Type | Description |
|---|---|---|
| outputPngContent | java.io.OutputStream | Byte stream, into which the PNG version of this raster image will be stored. Should not be NULL and should support writing. |
public abstract void dispose()
In implementing type should dispose this instance
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.