public interface PictureData
| Modifier and Type | Interface and Description | 
|---|---|
static class  | 
PictureData.PictureType  | 
| Modifier and Type | Method and Description | 
|---|---|
byte[] | 
getChecksum()
Gets the checksum - the checksum can be of various length -
 mostly it's 8 (XSLF) or 16 (HSLF) bytes long. 
 | 
java.lang.String | 
getContentType()
Returns content type (mime type) of this picture. 
 | 
byte[] | 
getData()
Returns the binary data of this Picture 
 | 
java.awt.Dimension | 
getImageDimension()
Return the original image dimensions in points
 (for formats supported by BufferedImage). 
 | 
java.awt.Dimension | 
getImageDimensionInPixels()
Return the original image dimensions in pixels 
 | 
PictureData.PictureType | 
getType()  | 
void | 
setData(byte[] data)
Sets the binary picture data 
 | 
java.lang.String getContentType()
PictureData.PictureType getType()
byte[] getData()
void setData(byte[] data)
      throws java.io.IOException
 The format of the data must match the format of getType(). Failure to match the picture data may result
 in data loss.
data - picture datajava.io.IOExceptionbyte[] getChecksum()
java.awt.Dimension getImageDimension()
java.awt.Dimension getImageDimensionInPixels()
getImageDimension()Copyright 2022 The Apache Software Foundation or its licensors, as applicable.