public final class DIB extends Bitmap
Modifier and Type | Field and Description |
---|---|
static int |
HEADER_SIZE
Size of the BITMAPFILEHEADER structure preceding the actual DIB bytes
|
CHECKSUM_SIZE, logger, offset, painters
Constructor and Description |
---|
DIB() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
addBMPHeader(byte[] data) |
byte[] |
getData()
Returns the binary data of this Picture
|
int |
getSignature()
DIB signature is
0x7A80 |
int |
getType()
Returns type of this picture.
|
void |
setData(byte[] data)
Set picture data
|
create, draw, getChecksum, getHeader, getImagePainter, getOffset, getRawData, getSize, getUID, setImagePainter, setOffset, setRawData, write
public static final int HEADER_SIZE
public int getType()
PictureData
Picture class.
- Specified by:
getType
in class PictureData
- Returns:
- type of this picture
- See Also:
Picture.DIB
-
getSignature
public int getSignature()
DIB signature is 0x7A80
- Specified by:
getSignature
in class PictureData
- Returns:
- DIB signature (
0x7A80
)
-
getData
public byte[] getData()
Description copied from class: PictureData
Returns the binary data of this Picture
-
addBMPHeader
public static byte[] addBMPHeader(byte[] data)
-
setData
public void setData(byte[] data)
throws IOException
Description copied from class: PictureData
Set picture data
- Overrides:
setData
in class Bitmap
- Throws:
IOException
Copyright © 2020. All rights reserved.