Class BMPMetadata
java.lang.Object
javax.imageio.metadata.IIOMetadata
com.github.jaiimageio.impl.plugins.bmp.BMPMetadata
- All Implemented Interfaces:
BMPConstants
,Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
short
int
int
double
double
double
int
int
int
int
int
int
int
int
int
double
double
double
int
int
int
static final String
byte[]
int
int
int
double
double
double
int
int
int
Fields inherited from class javax.imageio.metadata.IIOMetadata
controller, defaultController, extraMetadataFormatClassNames, extraMetadataFormatNames, nativeMetadataFormatClassName, standardFormatSupported
Fields inherited from interface com.github.jaiimageio.impl.plugins.bmp.BMPConstants
BI_BITFIELDS, BI_JPEG, BI_PNG, BI_RGB, BI_RLE4, BI_RLE8, compressionTypeNames, LCS_CALIBRATED_RGB, LCS_sRGB, LCS_WINDOWS_COLOR_SPACE, PROFILE_EMBEDDED, PROFILE_LINKED, VERSION_2, VERSION_3, VERSION_3_NT, VERSION_4, VERSION_5
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate IIOMetadataNode
addChildNode
(IIOMetadataNode root, String name, Object object) private void
addXYZPoints
(IIOMetadataNode root, String name, double x, double y, double z) clone()
private String
countBits
(int num) private void
private String
getAttribute
(Node node, String name) private String
getAttribute
(Node node, String name, String defaultValue, boolean required) private Byte
getByteValue
(Node node) private double
getDoubleAttribute
(Node node, String name) private double
getDoubleAttribute
(Node node, String name, double defaultValue, boolean required) private Double
getDoubleValue
(Node node) private int
getIntAttribute
(Node node, String name) private int
getIntAttribute
(Node node, String name, int defaultValue, boolean required) private Integer
getIntegerValue
(Node node) private Node
private Object
getObjectValue
(Node node) private Short
getShortValue
(Node node) protected IIOMetadataNode
protected IIOMetadataNode
protected IIOMetadataNode
protected IIOMetadataNode
protected IIOMetadataNode
protected IIOMetadataNode
protected IIOMetadataNode
private String
getStringValue
(Node node) (package private) void
initialize
(ColorModel cm, SampleModel sm, ImageWriteParam param) boolean
private void
mergeNativeTree
(Node root) private void
mergeStandardTree
(Node root) void
void
reset()
Methods inherited from class javax.imageio.metadata.IIOMetadata
activateController, getController, getDefaultController, getExtraMetadataFormatNames, getMetadataFormat, getMetadataFormatNames, getNativeMetadataFormatName, getStandardTileNode, getStandardTree, hasController, isStandardMetadataFormatSupported, setController, setFromTree
-
Field Details
-
nativeMetadataFormatName
- See Also:
-
bmpVersion
-
width
public int width -
height
public int height -
bitsPerPixel
public short bitsPerPixel -
compression
public int compression -
imageSize
public int imageSize -
xPixelsPerMeter
public int xPixelsPerMeter -
yPixelsPerMeter
public int yPixelsPerMeter -
colorsUsed
public int colorsUsed -
colorsImportant
public int colorsImportant -
redMask
public int redMask -
greenMask
public int greenMask -
blueMask
public int blueMask -
alphaMask
public int alphaMask -
colorSpace
public int colorSpace -
redX
public double redX -
redY
public double redY -
redZ
public double redZ -
greenX
public double greenX -
greenY
public double greenY -
greenZ
public double greenZ -
blueX
public double blueX -
blueY
public double blueY -
blueZ
public double blueZ -
gammaRed
public int gammaRed -
gammaGreen
public int gammaGreen -
gammaBlue
public int gammaBlue -
intent
public int intent -
palette
public byte[] palette -
paletteSize
public int paletteSize -
red
public int red -
green
public int green -
blue
public int blue -
comments
-
-
Constructor Details
-
BMPMetadata
public BMPMetadata() -
BMPMetadata
- Throws:
IIOInvalidTreeException
-
-
Method Details
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnly
in classIIOMetadata
-
clone
-
getAsTree
- Specified by:
getAsTree
in classIIOMetadata
-
getNativeTree
-
getStandardChromaNode
- Overrides:
getStandardChromaNode
in classIIOMetadata
-
getStandardCompressionNode
- Overrides:
getStandardCompressionNode
in classIIOMetadata
-
getStandardDataNode
- Overrides:
getStandardDataNode
in classIIOMetadata
-
getStandardDimensionNode
- Overrides:
getStandardDimensionNode
in classIIOMetadata
-
getStandardDocumentNode
- Overrides:
getStandardDocumentNode
in classIIOMetadata
-
getStandardTextNode
- Overrides:
getStandardTextNode
in classIIOMetadata
-
getStandardTransparencyNode
- Overrides:
getStandardTransparencyNode
in classIIOMetadata
-
fatal
- Throws:
IIOInvalidTreeException
-
getIntAttribute
private int getIntAttribute(Node node, String name, int defaultValue, boolean required) throws IIOInvalidTreeException - Throws:
IIOInvalidTreeException
-
getDoubleAttribute
private double getDoubleAttribute(Node node, String name, double defaultValue, boolean required) throws IIOInvalidTreeException - Throws:
IIOInvalidTreeException
-
getIntAttribute
- Throws:
IIOInvalidTreeException
-
getDoubleAttribute
- Throws:
IIOInvalidTreeException
-
getAttribute
private String getAttribute(Node node, String name, String defaultValue, boolean required) throws IIOInvalidTreeException - Throws:
IIOInvalidTreeException
-
getAttribute
- Throws:
IIOInvalidTreeException
-
initialize
-
mergeTree
- Specified by:
mergeTree
in classIIOMetadata
- Throws:
IIOInvalidTreeException
-
mergeNativeTree
- Throws:
IIOInvalidTreeException
-
mergeStandardTree
- Throws:
IIOInvalidTreeException
-
reset
public void reset()- Specified by:
reset
in classIIOMetadata
-
countBits
-
addXYZPoints
-
addChildNode
-
getObjectValue
-
getStringValue
-
getByteValue
-
getShortValue
-
getIntegerValue
-
getDoubleValue
-