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

NameTypeAccessDescription
countintReadGets the count.

Methods

SignatureDescription
getCount() → intReturns the count.
get(index: int) → PictureCalls get(index) on this PictureCollection instance.
add(upperLeftRow: int, upperLeftColumn: int, lowerRightRow: int, lowerRightColumn: int, imageData: byte[]) → intAdds a picture from raw bytes.
add(upperLeftRow: int, upperLeftColumn: int, lowerRightRow: int, lowerRightColumn: int, stream: InputStream) → intAdds a picture from an InputStream.
add(upperLeftRow: int, upperLeftColumn: int, lowerRightRow: int, lowerRightColumn: int, fileName: String) → intAdds a picture from a file path.
removeAt(index: int)Calls removeAt(index) on this PictureCollection instance.
detectImageType(data: byte[]) → ImageTypeCalls detectImageType(data) on this PictureCollection instance.
extensionFromData(data: byte[]) → StringCalls extensionFromData(data) on this PictureCollection instance.
contentTypeFromExtension(ext: String) → StringCalls contentTypeFromExtension(ext) on this PictureCollection instance.

See Also

 English