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.
(获取校验和 - 校验和可以有各种长度 - 大部分是 8 (XSLF) 或 16 (HSLF) 字节长。)
|
java.lang.String |
getContentType()
Returns content type (mime type) of this picture.
(返回此图片的内容类型(mime 类型)。)
|
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).
(返回以点为单位的原始图像尺寸(对于 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 data
(数据 - 图片数据)
java.io.IOException
(java.io.IOException)
byte[] getChecksum()
java.awt.Dimension getImageDimension()
java.awt.Dimension getImageDimensionInPixels()
getImageDimension()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.