com.lowagie.text.pdf.codec
public class BmpImage extends Object
It is based in the JAI codec.
Field Summary | |
---|---|
int | alphaMask |
long | bitmapFileSize |
long | bitmapOffset |
int | bitsPerPixel |
int | blueMask |
static int | BI_BITFIELDS |
static int | BI_RGB |
static int | BI_RLE4 |
static int | BI_RLE8 |
long | compression |
int | greenMask |
int | height |
long | imageSize |
int | imageType |
InputStream | inputStream |
boolean | isBottomUp |
static int | LCS_CALIBRATED_RGB |
static int | LCS_CMYK |
static int | LCS_sRGB |
int | numBands |
byte[] | palette |
HashMap | properties |
int | redMask |
static int | VERSION_2_1_BIT |
static int | VERSION_2_24_BIT |
static int | VERSION_2_4_BIT |
static int | VERSION_2_8_BIT |
static int | VERSION_3_1_BIT |
static int | VERSION_3_24_BIT |
static int | VERSION_3_4_BIT |
static int | VERSION_3_8_BIT |
static int | VERSION_3_NT_16_BIT |
static int | VERSION_3_NT_32_BIT |
static int | VERSION_4_16_BIT |
static int | VERSION_4_1_BIT |
static int | VERSION_4_24_BIT |
static int | VERSION_4_32_BIT |
static int | VERSION_4_4_BIT |
static int | VERSION_4_8_BIT |
int | width |
long | xPelsPerMeter |
long | yPelsPerMeter |
Constructor Summary | |
---|---|
BmpImage(InputStream is, boolean noHeader, int size) |
Method Summary | |
---|---|
byte[] | decodeRLE(boolean is8, byte[] values) |
int | findMask(int mask) |
int | findShift(int mask) |
static Image | getImage(URL url) Reads a BMP from an url. |
static Image | getImage(InputStream is) Reads a BMP from a stream. |
static Image | getImage(InputStream is, boolean noHeader, int size) Reads a BMP from a stream. |
static Image | getImage(String file) Reads a BMP from a file. |
static Image | getImage(byte[] data) Reads a BMP from a byte array. |
Image | getImage() |
byte[] | getPalette(int group) |
Image | indexedModel(byte[] bdata, int bpc, int paletteEntries) |
protected void | process(InputStream stream, boolean noHeader) |
Image | read1632Bit(boolean is32) |
Image | read1Bit(int paletteEntries) |
void | read24Bit(byte[] bdata) |
Image | read4Bit(int paletteEntries) |
Image | read8Bit(int paletteEntries) |
long | readDWord(InputStream stream) |
int | readInt(InputStream stream) |
int | readLong(InputStream stream) |
void | readPalette(int sizeOfPalette) |
Image | readRLE4() |
Image | readRLE8() |
int | readShort(InputStream stream) |
int | readUnsignedByte(InputStream stream) |
long | readUnsignedInt(InputStream stream) |
int | readUnsignedShort(InputStream stream) |
int | readWord(InputStream stream) |
Parameters: url the url
Returns: the image
Throws: IOException on error
Parameters: is the stream
Returns: the image
Throws: IOException on error
Parameters: is the stream noHeader true to process a plain DIB size the size of the DIB. Not used for a BMP
Returns: the image
Throws: IOException on error
Parameters: file the file
Returns: the image
Throws: IOException on error
Parameters: data the byte array
Returns: the image
Throws: IOException on error