Class DIBHeader
java.lang.Object
com.twelvemonkeys.imageio.plugins.bmp.DIBHeader
- Direct Known Subclasses:
DIBHeader.BitmapCoreHeader
,DIBHeader.BitmapCoreHeaderV2
,DIBHeader.BitmapInfoHeader
,DIBHeader.BitmapV4InfoHeader
,DIBHeader.BitmapV5InfoHeader
Represents the DIB (Device Independent Bitmap) Information header structure.
- Version:
- $Id: DIBHeader.java,v 1.0 May 5, 2009 10:45:31 AM haraldk Exp$
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class
(package private) static final class
OS/2 BitmapCoreHeader Version 2.(package private) static final class
Represents the DIB (Device Independent Bitmap) Windows 3.0 Bitmap Information header structure.(package private) static final class
Represents the BITMAPV4INFOHEADER structure.(package private) static final class
Represents the BITMAPV5INFOHEADER structure. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected double[]
protected int
protected int
protected int
protected int
0 = BI_RGB: No compression 1 = BI_RLE8: 8 bit RLE Compression (8 bit only) 2 = BI_RLE4: 4 bit RLE Compression (4 bit only) 3 = BI_BITFIELDS: No compression (16 invalid input: '&' 32 bit only)private final int
protected int[]
protected int
protected int
protected int
protected int[]
protected int
protected long
protected long
protected int
protected boolean
protected int
protected int
protected int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static DIBHeader
createHeader
(int size) final int
protected abstract String
int
int
int
final int
int
final int
final int
getSize()
final int
getWidth()
int
int
boolean
hasMasks()
protected abstract void
static DIBHeader
private static int[]
toString()
protected abstract void
write
(DataOutput stream)
-
Field Details
-
DEFAULT_PIXELS_PER_METER
private final int DEFAULT_PIXELS_PER_METER- See Also:
-
size
protected int size -
width
protected int width -
height
protected int height -
topDown
protected boolean topDown -
planes
protected int planes -
bitCount
protected int bitCount -
compression
protected int compression0 = BI_RGB: No compression 1 = BI_RLE8: 8 bit RLE Compression (8 bit only) 2 = BI_RLE4: 4 bit RLE Compression (4 bit only) 3 = BI_BITFIELDS: No compression (16 invalid input: '&' 32 bit only) -
imageSize
protected int imageSize -
xPixelsPerMeter
protected int xPixelsPerMeter -
yPixelsPerMeter
protected int yPixelsPerMeter -
colorsUsed
protected int colorsUsed -
colorsImportant
protected int colorsImportant -
masks
protected int[] masks -
colorSpaceType
protected int colorSpaceType -
cieXYZEndpoints
protected double[] cieXYZEndpoints -
gamma
protected int[] gamma -
intent
protected int intent -
profileData
protected long profileData -
profileSize
protected long profileSize
-
-
Constructor Details
-
DIBHeader
protected DIBHeader()
-
-
Method Details
-
read
- Throws:
IOException
-
createHeader
- Throws:
IOException
-
read
- Throws:
IOException
-
write
- Throws:
IOException
-
getSize
public final int getSize() -
getWidth
public final int getWidth() -
getHeight
public final int getHeight() -
getPlanes
public final int getPlanes() -
getBitCount
public final int getBitCount() -
getCompression
public int getCompression() -
getImageSize
public int getImageSize() -
getXPixelsPerMeter
public int getXPixelsPerMeter() -
getYPixelsPerMeter
public int getYPixelsPerMeter() -
getColorsUsed
public int getColorsUsed() -
getColorsImportant
public int getColorsImportant() -
hasMasks
public boolean hasMasks() -
toString
-
readMasks
- Throws:
IOException
-
getBMPVersion
-