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
data
- picture datajava.io.IOException
byte[] getChecksum()
java.awt.Dimension getImageDimension()
java.awt.Dimension getImageDimensionInPixels()
getImageDimension()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.