Image — Aspose.Slides FOSS Java API Reference
Image — Represents a raster or vector image. Inherits from: IImage.
Package: org.aspose.slides.foss
Properties
| Property | Type | Access | Description |
|---|---|---|---|
size | Size | Read/Write | |
width | int | Read/Write | |
height | int | Read/Write | |
contentType | String | Read/Write | |
data | byte[] | Read/Write |
Methods
| Method | Returns | Description |
|---|---|---|
initInternal(byte[] data, String contentType) | void | Internal initialization with image data. |
getSize() | Size | {@inheritDoc} / |
getWidth() | int | {@inheritDoc} / |
getHeight() | int | {@inheritDoc} / |
getContentType() | String | Gets the MIME content type of the image. |
getData() | byte[] | Gets the raw image data. |
save(String filename) | void | {@inheritDoc} / |
save(String filename, String format) | void | {@inheritDoc} / |
save(String filename, String format, int quality) | void | {@inheritDoc} / |
save(OutputStream stream, String format) | void | {@inheritDoc} / |
save(OutputStream stream, String format, int quality) | void | {@inheritDoc} / |
close() | void | {@inheritDoc} / |