BitmapInfoHeader
Inheritance: java.lang.Object, com.aspose.imaging.fileformats.bmp.BitmapCoreHeader
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.
Methods
Method | Description |
---|---|
getBitmapCompression() | Gets bitmap compression. |
setBitmapCompression(long value) | Sets bitmap compression. |
getBitmapImageSize() | Gets specifies bitmap raw data size in bytes. |
setBitmapImageSize(long value) | Sets specifies bitmap raw data size in bytes. |
getBitmapXPelsPerMeter() | Gets horizontal pixels resolution. |
setBitmapXPelsPerMeter(int value) | Gets or sets horizontal pixels resolution. |
getBitmapYPelsPerMeter() | Gets or sets vertical pixels resolution. |
setBitmapYPelsPerMeter(int value) | Gets or sets vertical pixels resolution. |
getBitmapColorsUsed() | Gets number of palette colors used. |
setBitmapColorsUsed(long value) | Gets or sets number of palette colors used. |
getBitmapColorsImportant() | Gets or sets number of important palette colors. |
setBitmapColorsImportant(long value) | Gets or sets number of important palette colors. |
getExtraBitMasks() | Gets or sets the extra bit masks. |
setExtraBitMasks(int[] value) | Gets or sets the extra bit masks. |
getBitmapCompression()
public long getBitmapCompression()
Gets bitmap compression.
Returns: long - bitmap compression.
setBitmapCompression(long value)
public void setBitmapCompression(long value)
Sets bitmap compression.
Parameters:
Parameter | Type | Description |
---|---|---|
value | long | bitmap compression. |
getBitmapImageSize()
public long getBitmapImageSize()
Gets specifies bitmap raw data size in bytes.
Returns: long - bitmap raw data size in bytes.
setBitmapImageSize(long value)
public void setBitmapImageSize(long value)
Sets specifies bitmap raw data size in bytes.
Parameters:
Parameter | Type | Description |
---|---|---|
value | long | bitmap raw data size in bytes. |
getBitmapXPelsPerMeter()
public int getBitmapXPelsPerMeter()
Gets horizontal pixels resolution.
Returns: int - horizontal pixels resolution.
setBitmapXPelsPerMeter(int value)
public void setBitmapXPelsPerMeter(int value)
Gets or sets horizontal pixels resolution.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | horizontal pixels resolution. |
getBitmapYPelsPerMeter()
public int getBitmapYPelsPerMeter()
Gets or sets vertical pixels resolution.
Returns: int - vertical pixels resolution.
setBitmapYPelsPerMeter(int value)
public void setBitmapYPelsPerMeter(int value)
Gets or sets vertical pixels resolution.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | vertical pixels resolution. |
getBitmapColorsUsed()
public long getBitmapColorsUsed()
Gets number of palette colors used.
Returns: long - number of palette colors used.
setBitmapColorsUsed(long value)
public void setBitmapColorsUsed(long value)
Gets or sets number of palette colors used.
Parameters:
Parameter | Type | Description |
---|---|---|
value | long | number of palette colors used. |
getBitmapColorsImportant()
public long getBitmapColorsImportant()
Gets or sets number of important palette colors.
Returns: long - number of important palette colors.
setBitmapColorsImportant(long value)
public void setBitmapColorsImportant(long value)
Gets or sets number of important palette colors.
Parameters:
Parameter | Type | Description |
---|---|---|
value | long | number of important palette colors. |
getExtraBitMasks()
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).
Returns: int[] - the extra bit masks.
setExtraBitMasks(int[] value)
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).
Parameters:
Parameter | Type | Description |
---|---|---|
value | int[] | the extra bit masks. |