PictureCollection
Overview
PictureCollection is a class in Aspose.Cells FOSS for Java.
Collection of embedded pictures on a worksheet.
This class declares 9 methods for PictureCollection objects in Java programs.
Available methods include: add, contentTypeFromExtension, detectImageType, extensionFromData, get, getCount, removeAt.
Public members are accessible to any Java application after installing the Aspose.Cells FOSS for Java package.
Properties: count.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
count | int | Read | Gets the count. |
Methods
| Signature | Description |
|---|---|
getCount() → int | Returns the count. |
get(index: int) → Picture | Calls get(index) on this PictureCollection instance. |
add(upperLeftRow: int, upperLeftColumn: int, lowerRightRow: int, lowerRightColumn: int, imageData: byte[]) → int | Adds a picture from raw bytes. |
add(upperLeftRow: int, upperLeftColumn: int, lowerRightRow: int, lowerRightColumn: int, stream: InputStream) → int | Adds a picture from an InputStream. |
add(upperLeftRow: int, upperLeftColumn: int, lowerRightRow: int, lowerRightColumn: int, fileName: String) → int | Adds a picture from a file path. |
removeAt(index: int) | Calls removeAt(index) on this PictureCollection instance. |
detectImageType(data: byte[]) → ImageType | Calls detectImageType(data) on this PictureCollection instance. |
extensionFromData(data: byte[]) → String | Calls extensionFromData(data) on this PictureCollection instance. |
contentTypeFromExtension(ext: String) → String | Calls contentTypeFromExtension(ext) on this PictureCollection instance. |