public interface PictureData
Modifier and Type | Method and Description |
---|---|
byte[] |
getData()
Gets the picture data.
|
java.lang.String |
getMimeType()
Returns the mime type for the image
|
int |
getPictureType() |
java.lang.String |
suggestFileExtension()
Suggests a file extension for this image.
|
byte[] getData()
java.lang.String suggestFileExtension()
.
. Never null
, but will be empty if the extension
is unknown or if the file backing these data does not have an extension.java.lang.String getMimeType()
int getPictureType()
0
if unknown image typeWorkbook.PICTURE_TYPE_DIB
,
Workbook.PICTURE_TYPE_EMF
,
Workbook.PICTURE_TYPE_JPEG
,
Workbook.PICTURE_TYPE_PICT
,
Workbook.PICTURE_TYPE_PNG
,
Workbook.PICTURE_TYPE_WMF
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.