Gambar (Inggris)
Pengamatan umum
Image adalah kelas di Aspose.Slides FOSS untuk Java. Warisan dari: ゚IImage` .
Menampilkan gambar raster atau vektor.
Sifat-sifatnya
| Name | Type | Access | Description |
|---|---|---|---|
size | Size | Read | Provides the image dimensions as a Size |
width | int | Read | |
height | int | Read | Provides the image height in pixels |
contentType | String | Read | Provides the MIME type of the image |
data | byte[] | Read | Provides the raw image byte array |
Metode-metode yang digunakan
| Signature | Description |
|---|---|
Image() | Creates an uninitialized image. |
initInternal(data: byte[], contentType: String) | 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(filename: String) | {@inheritDoc} |
| / | |
save(filename: String, format: String) | {@inheritDoc} |
| / | |
save(filename: String, format: String, quality: int) | {@inheritDoc} |
| / | |
save(stream: OutputStream, format: String) | {@inheritDoc} |
| / | |
save(stream: OutputStream, format: String, quality: int) | {@inheritDoc} |
| / | |
close() | {@inheritDoc} |
| / |