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 DIBHeaderstatic final StringWe return metadata in the exact same form as the JRE built-in, to be compatible with the BMPImageWriter.Fields inherited from class IIOMetadata
controller, defaultController, extraMetadataFormatClassNames, extraMetadataFormatNames, nativeMetadataFormatClassName, standardFormatSupported -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate IIOMetadataNodeaddChildNode(IIOMetadataNode parent, String name, Object object) private voidaddXYZPoints(IIOMetadataNode cieXYZNode, String color, double colorX, double colorY, double colorZ) private intcountMaskBits(int mask) private Stringprivate StringcreateListValue(int itemCount, String... values) protected NodeDefault implementation that throwsUnsupportedOperationException.protected IIOMetadataNodeprotected IIOMetadataNodeprotected IIOMetadataNodeprotected IIOMetadataNodeprotected IIOMetadataNodeMethods inherited from class AbstractMetadata
assertMutable, getAsTree, isReadOnly, mergeTree, reset, toListString, validateFormatNameMethods inherited from class 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:AbstractMetadataDefault implementation that throwsUnsupportedOperationException. Subclasses that supports formats other than standard metadata should override this method.- Overrides:
getNativeTreein classAbstractMetadata
-
addXYZPoints
private void addXYZPoints(IIOMetadataNode cieXYZNode, String color, double colorX, double colorY, double colorZ) -
addChildNode
-
getStandardChromaNode
- Overrides:
getStandardChromaNodein classIIOMetadata
-
getStandardCompressionNode
- Overrides:
getStandardCompressionNodein classIIOMetadata
-
getStandardDataNode
- Overrides:
getStandardDataNodein classIIOMetadata
-
createBitsPerSampleForBitMasks
-
countMaskBits
private int countMaskBits(int mask) -
createListValue
-
getStandardDimensionNode
- Overrides:
getStandardDimensionNodein classIIOMetadata
-
getStandardTransparencyNode
- Overrides:
getStandardTransparencyNodein classIIOMetadata
-