Class BMPMetadata
- java.lang.Object
-
- javax.imageio.metadata.IIOMetadata
-
- com.github.jaiimageio.impl.plugins.bmp.BMPMetadata
-
- All Implemented Interfaces:
BMPConstants,java.lang.Cloneable
public class BMPMetadata extends javax.imageio.metadata.IIOMetadata implements java.lang.Cloneable, BMPConstants
-
-
Field Summary
Fields Modifier and Type Field Description intalphaMaskshortbitsPerPixelintblueintblueMaskdoubleblueXdoubleblueYdoubleblueZjava.lang.StringbmpVersionintcolorsImportantintcolorSpaceintcolorsUsedjava.util.ListcommentsintcompressionintgammaBlueintgammaGreenintgammaRedintgreenintgreenMaskdoublegreenXdoublegreenYdoublegreenZintheightintimageSizeintintentstatic java.lang.StringnativeMetadataFormatNamebyte[]paletteintpaletteSizeintredintredMaskdoubleredXdoubleredYdoubleredZintwidthintxPixelsPerMeterintyPixelsPerMeter-
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 Constructor Description BMPMetadata()BMPMetadata(javax.imageio.metadata.IIOMetadata metadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private javax.imageio.metadata.IIOMetadataNodeaddChildNode(javax.imageio.metadata.IIOMetadataNode root, java.lang.String name, java.lang.Object object)private voidaddXYZPoints(javax.imageio.metadata.IIOMetadataNode root, java.lang.String name, double x, double y, double z)java.lang.Objectclone()private java.lang.StringcountBits(int num)private voidfatal(org.w3c.dom.Node node, java.lang.String reason)org.w3c.dom.NodegetAsTree(java.lang.String formatName)private java.lang.StringgetAttribute(org.w3c.dom.Node node, java.lang.String name)private java.lang.StringgetAttribute(org.w3c.dom.Node node, java.lang.String name, java.lang.String defaultValue, boolean required)private java.lang.BytegetByteValue(org.w3c.dom.Node node)private doublegetDoubleAttribute(org.w3c.dom.Node node, java.lang.String name)private doublegetDoubleAttribute(org.w3c.dom.Node node, java.lang.String name, double defaultValue, boolean required)private java.lang.DoublegetDoubleValue(org.w3c.dom.Node node)private intgetIntAttribute(org.w3c.dom.Node node, java.lang.String name)private intgetIntAttribute(org.w3c.dom.Node node, java.lang.String name, int defaultValue, boolean required)private java.lang.IntegergetIntegerValue(org.w3c.dom.Node node)private org.w3c.dom.NodegetNativeTree()private java.lang.ObjectgetObjectValue(org.w3c.dom.Node node)private java.lang.ShortgetShortValue(org.w3c.dom.Node node)protected javax.imageio.metadata.IIOMetadataNodegetStandardChromaNode()protected javax.imageio.metadata.IIOMetadataNodegetStandardCompressionNode()protected javax.imageio.metadata.IIOMetadataNodegetStandardDataNode()protected javax.imageio.metadata.IIOMetadataNodegetStandardDimensionNode()protected javax.imageio.metadata.IIOMetadataNodegetStandardDocumentNode()protected javax.imageio.metadata.IIOMetadataNodegetStandardTextNode()protected javax.imageio.metadata.IIOMetadataNodegetStandardTransparencyNode()private java.lang.StringgetStringValue(org.w3c.dom.Node node)(package private) voidinitialize(java.awt.image.ColorModel cm, java.awt.image.SampleModel sm, javax.imageio.ImageWriteParam param)booleanisReadOnly()private voidmergeNativeTree(org.w3c.dom.Node root)private voidmergeStandardTree(org.w3c.dom.Node root)voidmergeTree(java.lang.String formatName, org.w3c.dom.Node root)voidreset()-
Methods inherited from class javax.imageio.metadata.IIOMetadata
activateController, getController, getDefaultController, getExtraMetadataFormatNames, getMetadataFormat, getMetadataFormatNames, getNativeMetadataFormatName, getStandardTileNode, getStandardTree, hasController, isStandardMetadataFormatSupported, setController, setFromTree
-
-
-
-
Field Detail
-
nativeMetadataFormatName
public static final java.lang.String nativeMetadataFormatName
- See Also:
- Constant Field Values
-
bmpVersion
public java.lang.String 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
public java.util.List comments
-
-
Method Detail
-
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnlyin classjavax.imageio.metadata.IIOMetadata
-
clone
public java.lang.Object clone()
- Overrides:
clonein classjava.lang.Object
-
getAsTree
public org.w3c.dom.Node getAsTree(java.lang.String formatName)
- Specified by:
getAsTreein classjavax.imageio.metadata.IIOMetadata
-
getNativeTree
private org.w3c.dom.Node getNativeTree()
-
getStandardChromaNode
protected javax.imageio.metadata.IIOMetadataNode getStandardChromaNode()
- Overrides:
getStandardChromaNodein classjavax.imageio.metadata.IIOMetadata
-
getStandardCompressionNode
protected javax.imageio.metadata.IIOMetadataNode getStandardCompressionNode()
- Overrides:
getStandardCompressionNodein classjavax.imageio.metadata.IIOMetadata
-
getStandardDataNode
protected javax.imageio.metadata.IIOMetadataNode getStandardDataNode()
- Overrides:
getStandardDataNodein classjavax.imageio.metadata.IIOMetadata
-
getStandardDimensionNode
protected javax.imageio.metadata.IIOMetadataNode getStandardDimensionNode()
- Overrides:
getStandardDimensionNodein classjavax.imageio.metadata.IIOMetadata
-
getStandardDocumentNode
protected javax.imageio.metadata.IIOMetadataNode getStandardDocumentNode()
- Overrides:
getStandardDocumentNodein classjavax.imageio.metadata.IIOMetadata
-
getStandardTextNode
protected javax.imageio.metadata.IIOMetadataNode getStandardTextNode()
- Overrides:
getStandardTextNodein classjavax.imageio.metadata.IIOMetadata
-
getStandardTransparencyNode
protected javax.imageio.metadata.IIOMetadataNode getStandardTransparencyNode()
- Overrides:
getStandardTransparencyNodein classjavax.imageio.metadata.IIOMetadata
-
fatal
private void fatal(org.w3c.dom.Node node, java.lang.String reason) throws javax.imageio.metadata.IIOInvalidTreeException- Throws:
javax.imageio.metadata.IIOInvalidTreeException
-
getIntAttribute
private int getIntAttribute(org.w3c.dom.Node node, java.lang.String name, int defaultValue, boolean required) throws javax.imageio.metadata.IIOInvalidTreeException- Throws:
javax.imageio.metadata.IIOInvalidTreeException
-
getDoubleAttribute
private double getDoubleAttribute(org.w3c.dom.Node node, java.lang.String name, double defaultValue, boolean required) throws javax.imageio.metadata.IIOInvalidTreeException- Throws:
javax.imageio.metadata.IIOInvalidTreeException
-
getIntAttribute
private int getIntAttribute(org.w3c.dom.Node node, java.lang.String name) throws javax.imageio.metadata.IIOInvalidTreeException- Throws:
javax.imageio.metadata.IIOInvalidTreeException
-
getDoubleAttribute
private double getDoubleAttribute(org.w3c.dom.Node node, java.lang.String name) throws javax.imageio.metadata.IIOInvalidTreeException- Throws:
javax.imageio.metadata.IIOInvalidTreeException
-
getAttribute
private java.lang.String getAttribute(org.w3c.dom.Node node, java.lang.String name, java.lang.String defaultValue, boolean required) throws javax.imageio.metadata.IIOInvalidTreeException- Throws:
javax.imageio.metadata.IIOInvalidTreeException
-
getAttribute
private java.lang.String getAttribute(org.w3c.dom.Node node, java.lang.String name) throws javax.imageio.metadata.IIOInvalidTreeException- Throws:
javax.imageio.metadata.IIOInvalidTreeException
-
initialize
void initialize(java.awt.image.ColorModel cm, java.awt.image.SampleModel sm, javax.imageio.ImageWriteParam param)
-
mergeTree
public void mergeTree(java.lang.String formatName, org.w3c.dom.Node root) throws javax.imageio.metadata.IIOInvalidTreeException- Specified by:
mergeTreein classjavax.imageio.metadata.IIOMetadata- Throws:
javax.imageio.metadata.IIOInvalidTreeException
-
mergeNativeTree
private void mergeNativeTree(org.w3c.dom.Node root) throws javax.imageio.metadata.IIOInvalidTreeException- Throws:
javax.imageio.metadata.IIOInvalidTreeException
-
mergeStandardTree
private void mergeStandardTree(org.w3c.dom.Node root) throws javax.imageio.metadata.IIOInvalidTreeException- Throws:
javax.imageio.metadata.IIOInvalidTreeException
-
reset
public void reset()
- Specified by:
resetin classjavax.imageio.metadata.IIOMetadata
-
countBits
private java.lang.String countBits(int num)
-
addXYZPoints
private void addXYZPoints(javax.imageio.metadata.IIOMetadataNode root, java.lang.String name, double x, double y, double z)
-
addChildNode
private javax.imageio.metadata.IIOMetadataNode addChildNode(javax.imageio.metadata.IIOMetadataNode root, java.lang.String name, java.lang.Object object)
-
getObjectValue
private java.lang.Object getObjectValue(org.w3c.dom.Node node)
-
getStringValue
private java.lang.String getStringValue(org.w3c.dom.Node node)
-
getByteValue
private java.lang.Byte getByteValue(org.w3c.dom.Node node)
-
getShortValue
private java.lang.Short getShortValue(org.w3c.dom.Node node)
-
getIntegerValue
private java.lang.Integer getIntegerValue(org.w3c.dom.Node node)
-
getDoubleValue
private java.lang.Double getDoubleValue(org.w3c.dom.Node node)
-
-