Class BMPMetadata
java.lang.Object
javax.imageio.metadata.IIOMetadata
com.twelvemonkeys.imageio.AbstractMetadata
com.twelvemonkeys.imageio.plugins.bmp.BMPMetadata
- All Implemented Interfaces:
Cloneable
BMPMetadata.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int[]
private final DIBHeader
static final String
We return metadata in the exact same form as the JRE built-in, to be compatible with the BMPImageWriter.Fields inherited from class javax.imageio.metadata.IIOMetadata
controller, defaultController, extraMetadataFormatClassNames, extraMetadataFormatNames, nativeMetadataFormatClassName, standardFormatSupported
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate IIOMetadataNode
addChildNode
(IIOMetadataNode parent, String name, Object object) private void
addXYZPoints
(IIOMetadataNode cieXYZNode, String color, double colorX, double colorY, double colorZ) private int
countMaskBits
(int mask) private String
private String
createListValue
(int itemCount, String... values) protected Node
Default implementation that throwsUnsupportedOperationException
.protected IIOMetadataNode
protected IIOMetadataNode
protected IIOMetadataNode
protected IIOMetadataNode
protected IIOMetadataNode
Methods inherited from class com.twelvemonkeys.imageio.AbstractMetadata
assertMutable, getAsTree, isReadOnly, mergeTree, reset, toListString, validateFormatName
Methods inherited from class javax.imageio.metadata.IIOMetadata
activateController, getController, getDefaultController, getExtraMetadataFormatNames, getMetadataFormat, getMetadataFormatNames, getNativeMetadataFormatName, getStandardDocumentNode, getStandardTextNode, getStandardTileNode, getStandardTree, hasController, isStandardMetadataFormatSupported, setController, setFromTree
-
Field Details
-
nativeMetadataFormatName
We return metadata in the exact same form as the JRE built-in, to be compatible with the BMPImageWriter.- See Also:
-
header
-
colorMap
private final int[] colorMap
-
-
Constructor Details
-
BMPMetadata
BMPMetadata(DIBHeader header, int[] colorMap)
-
-
Method Details
-
getNativeTree
Description copied from class:AbstractMetadata
Default implementation that throwsUnsupportedOperationException
. Subclasses that supports formats other than standard metadata should override this method.- Overrides:
getNativeTree
in classAbstractMetadata
-
addXYZPoints
private void addXYZPoints(IIOMetadataNode cieXYZNode, String color, double colorX, double colorY, double colorZ) -
addChildNode
-
getStandardChromaNode
- Overrides:
getStandardChromaNode
in classIIOMetadata
-
getStandardCompressionNode
- Overrides:
getStandardCompressionNode
in classIIOMetadata
-
getStandardDataNode
- Overrides:
getStandardDataNode
in classIIOMetadata
-
createBitsPerSampleForBitMasks
-
countMaskBits
private int countMaskBits(int mask) -
createListValue
-
getStandardDimensionNode
- Overrides:
getStandardDimensionNode
in classIIOMetadata
-
getStandardTransparencyNode
- Overrides:
getStandardTransparencyNode
in classIIOMetadata
-