public class GdiBitmapFileHeader extends Object
The BITMAPFILEHEADER structure contains information about the type, size, and layout of a file that contains a DIB.
Modifier and Type | Field and Description |
---|---|
static int |
STRUCTURE_SIZE
Size of the BITMAPFILEHEADER structure.
|
Constructor and Description |
---|
GdiBitmapFileHeader()
Initializes a new instance of the
GdiBitmapFileHeader class. |
Modifier and Type | Method and Description |
---|---|
int |
getOffBits()
Gets or sets The offset, in bytes, from the beginning of the BITMAPFILEHEADER structure to the bitmap bits..
|
short |
getReserved1()
Gets or sets the Reserved; must be zero.
|
short |
getReserved2()
Gets or sets the Reserved; must be zero.
|
int |
getSize()
Gets or sets The size, in bytes, of the bitmap file.
|
short |
getType()
Gets or sets The file type; must be BM.
|
void |
setOffBits(int value)
Gets or sets The offset, in bytes, from the beginning of the BITMAPFILEHEADER structure to the bitmap bits..
|
void |
setReserved1(short value)
Gets or sets the Reserved; must be zero.
|
void |
setReserved2(short value)
Gets or sets the Reserved; must be zero.
|
void |
setSize(int value)
Gets or sets The size, in bytes, of the bitmap file.
|
void |
setType(short value)
Gets or sets The file type; must be BM.
|
void |
write_internalized(com.aspose.ms.System.IO.BinaryWriter writer)
Writes the specified writer.
|
public static final int STRUCTURE_SIZE
Size of the BITMAPFILEHEADER structure.
public GdiBitmapFileHeader()
Initializes a new instance of the GdiBitmapFileHeader
class.
public short getType()
Gets or sets The file type; must be BM.
Value: The type.public void setType(short value)
Gets or sets The file type; must be BM.
Value: The type.public int getSize()
Gets or sets The size, in bytes, of the bitmap file.
Value: The size.public void setSize(int value)
Gets or sets The size, in bytes, of the bitmap file.
Value: The size.public short getReserved1()
Gets or sets the Reserved; must be zero.
Value: The reserved1.public void setReserved1(short value)
Gets or sets the Reserved; must be zero.
Value: The reserved1.public short getReserved2()
Gets or sets the Reserved; must be zero.
Value: The reserved2.public void setReserved2(short value)
Gets or sets the Reserved; must be zero.
Value: The reserved2.public int getOffBits()
Gets or sets The offset, in bytes, from the beginning of the BITMAPFILEHEADER structure to the bitmap bits..
Value: The off bits.public void setOffBits(int value)
Gets or sets The offset, in bytes, from the beginning of the BITMAPFILEHEADER structure to the bitmap bits..
Value: The off bits.public void write_internalized(com.aspose.ms.System.IO.BinaryWriter writer)
Writes the specified writer.
writer
- The writer.Copyright (c) 2008-2016 Aspose Pty Ltd. All Rights Reserved.