public class BitmapInfoHeader extends BitmapCoreHeader
Specifies BITMAPINFOHEADER. OS Support: Windows NT, 3.1x or later. Features: Adds 16 bpp and 32 bpp formats. Adds RLE compression.
BITMAP_CORE_HEADER_SIZE, BITMAP_INFO_HEADER_SIZE, BITMAP_INFO_HEADER_SIZE_V_2, BITMAP_INFO_HEADER_SIZE_V_3, BITMAP_INFO_HEADER_SIZE_V_4, BITMAP_INFO_HEADER_SIZE_V_5, OS_22_X_BITMAP_HEADER_FULL_SIZE, OS_22_X_BITMAP_HEADER_SIZE
Modifier and Type | Method and Description |
---|---|
long |
getBitmapColorsImportant()
Gets or sets number of important palette colors.
|
long |
getBitmapColorsUsed()
Gets number of palette colors used.
|
long |
getBitmapCompression()
Gets bitmap compression.
|
long |
getBitmapImageSize()
Gets specifies bitmap raw data size in bytes.
|
int |
getBitmapXPelsPerMeter()
Gets horizontal pixels resolution.
|
int |
getBitmapYPelsPerMeter()
Gets or sets vertical pixels resolution.
|
int[] |
getExtraBitMasks()
Gets or sets the extra bit masks.
|
void |
setBitmapColorsImportant(long value)
Gets or sets number of important palette colors.
|
void |
setBitmapColorsUsed(long value)
Gets or sets number of palette colors used.
|
void |
setBitmapCompression(long value)
Sets bitmap compression.
|
void |
setBitmapImageSize(long value)
Sets specifies bitmap raw data size in bytes.
|
void |
setBitmapXPelsPerMeter(int value)
Gets or sets horizontal pixels resolution.
|
void |
setBitmapYPelsPerMeter(int value)
Gets or sets vertical pixels resolution.
|
void |
setExtraBitMasks(int[] value)
Gets or sets the extra bit masks.
|
static void |
write(StreamContainer stream,
BitmapInfoHeader fileHeader)
Writes the specified stream.
|
getBitmapHeight, getBitmapPlanes, getBitmapWidth, getBitsPerPixel, getHeaderSize, setBitmapHeight, setBitmapPlanes, setBitmapWidth, setBitsPerPixel, setHeaderSize
public long getBitmapCompression()
Gets bitmap compression.
public void setBitmapCompression(long value)
Sets bitmap compression.
value
- bitmap compression.public long getBitmapImageSize()
Gets specifies bitmap raw data size in bytes.
public void setBitmapImageSize(long value)
Sets specifies bitmap raw data size in bytes.
value
- bitmap raw data size in bytes.public int getBitmapXPelsPerMeter()
Gets horizontal pixels resolution.
public void setBitmapXPelsPerMeter(int value)
Gets or sets horizontal pixels resolution.
value
- horizontal pixels resolution.public int getBitmapYPelsPerMeter()
Gets or sets vertical pixels resolution.
public void setBitmapYPelsPerMeter(int value)
Gets or sets vertical pixels resolution.
value
- vertical pixels resolution.public long getBitmapColorsUsed()
Gets number of palette colors used.
public void setBitmapColorsUsed(long value)
Gets or sets number of palette colors used.
value
- number of palette colors used.public long getBitmapColorsImportant()
Gets or sets number of important palette colors.
public void setBitmapColorsImportant(long value)
Gets or sets number of important palette colors.
value
- number of important palette colors.public int[] getExtraBitMasks()
Gets or sets the extra bit masks.
Present only in case the DIB header is the BITMAPINFOHEADER and the BitmapCompression
is set to either BitmapCompression.Bitfields
(RGB) or BitmapCompression.AlphaBitfields
(RGBA).
public void setExtraBitMasks(int[] value)
Gets or sets the extra bit masks.
Present only in case the DIB header is the BITMAPINFOHEADER and the BitmapCompression
is set to either BitmapCompression.Bitfields
(RGB) or BitmapCompression.AlphaBitfields
(RGBA).
value
- the extra bit masks.public static void write(StreamContainer stream, BitmapInfoHeader fileHeader)
Writes the specified stream.
stream
- The stream.fileHeader
- The file header.