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 TypeFieldDescriptionintshortintintdoubledoubledoubleintintintintintintintintintdoubledoubledoubleintintintstatic final Stringbyte[]intintintdoubledoubledoubleintintintFields inherited from class IIOMetadata
controller, defaultController, extraMetadataFormatClassNames, extraMetadataFormatNames, nativeMetadataFormatClassName, standardFormatSupportedFields inherited from interface 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 IIOMetadataNodeaddChildNode(IIOMetadataNode root, String name, Object object) private voidaddXYZPoints(IIOMetadataNode root, String name, double x, double y, double z) clone()private StringcountBits(int num) private voidprivate StringgetAttribute(Node node, String name) private StringgetAttribute(Node node, String name, String defaultValue, boolean required) private BytegetByteValue(Node node) private doublegetDoubleAttribute(Node node, String name) private doublegetDoubleAttribute(Node node, String name, double defaultValue, boolean required) private DoublegetDoubleValue(Node node) private intgetIntAttribute(Node node, String name) private intgetIntAttribute(Node node, String name, int defaultValue, boolean required) private IntegergetIntegerValue(Node node) private Nodeprivate ObjectgetObjectValue(Node node) private ShortgetShortValue(Node node) protected IIOMetadataNodeprotected IIOMetadataNodeprotected IIOMetadataNodeprotected IIOMetadataNodeprotected IIOMetadataNodeprotected IIOMetadataNodeprotected IIOMetadataNodeprivate StringgetStringValue(Node node) (package private) voidinitialize(ColorModel cm, SampleModel sm, ImageWriteParam param) booleanprivate voidmergeNativeTree(Node root) private voidmergeStandardTree(Node root) voidvoidreset()Methods inherited from class 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:
isReadOnlyin classIIOMetadata
-
clone
-
getAsTree
- Specified by:
getAsTreein classIIOMetadata
-
getNativeTree
-
getStandardChromaNode
- Overrides:
getStandardChromaNodein classIIOMetadata
-
getStandardCompressionNode
- Overrides:
getStandardCompressionNodein classIIOMetadata
-
getStandardDataNode
- Overrides:
getStandardDataNodein classIIOMetadata
-
getStandardDimensionNode
- Overrides:
getStandardDimensionNodein classIIOMetadata
-
getStandardDocumentNode
- Overrides:
getStandardDocumentNodein classIIOMetadata
-
getStandardTextNode
- Overrides:
getStandardTextNodein classIIOMetadata
-
getStandardTransparencyNode
- Overrides:
getStandardTransparencyNodein 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:
mergeTreein classIIOMetadata- Throws:
IIOInvalidTreeException
-
mergeNativeTree
- Throws:
IIOInvalidTreeException
-
mergeStandardTree
- Throws:
IIOInvalidTreeException
-
reset
public void reset()- Specified by:
resetin classIIOMetadata
-
countBits
-
addXYZPoints
-
addChildNode
-
getObjectValue
-
getStringValue
-
getByteValue
-
getShortValue
-
getIntegerValue
-
getDoubleValue
-