public class WindowsBitmap extends DataObject
Modifier and Type | Field and Description |
---|---|
String |
_fields |
int |
bitmapBytesPerLine |
int |
bpp |
byte[] |
bytes |
byte[] |
colorTable |
protected IImage |
decodedImage |
byte[] |
fileHeader |
int |
height |
static int |
HeightLocation |
byte[] |
infoHeader |
boolean |
isIcon |
int |
maskBytesPerLine |
byte[] |
masks |
static int |
OPTION_ALWAYS_USE_ARGB
This is an option that specifies that 32 bit ARGB bitmaps only are to be used.
|
static int |
OPTION_DONT_ALLOW_ARGB
This is an option that specifies that 32 bit ARGB bitmaps are NOT to be used.
|
static int |
OPTION_DONT_USE_PALETTE
This is an option that tells the WindowsBitMap to only use 24 bit RGB images (with transparency mask) or
32 bit ARGB (with no transparency mask).
|
static int |
OPTION_USE_RGB_OR_ARGB_ONLY
This is an option that tells the WindowsBitMap to only use 24 bit RGB images (with transparency mask) or
32 bit ARGB (with no transparency mask).
|
int |
size |
static int |
SizeLocation |
int |
transparentColorIndex |
int |
width |
Constructor and Description |
---|
WindowsBitmap() |
WindowsBitmap(IImage im) |
WindowsBitmap(ImageData im,
int options) |
Modifier and Type | Method and Description |
---|---|
static byte[] |
copyFrom(byte[] source) |
void |
copyFrom(Object other)
Copy all appropriate data from another object.
|
void |
fromInfoHeader(InputStream imageStream) |
Color |
getColorFor(int colorIndex) |
int |
getColorIndexAt(int x,
int y) |
byte[] |
getMaskForColor(int index) |
int |
getSize(boolean includeFileHeader) |
static int |
readBmpInt(byte[] source,
int offset,
int numBytes)
This reads an integer value from a byte array with the specified number
of bytes.
|
WindowsIcon |
toIcon() |
IImage |
toImage() |
IImage |
toImage(byte[] fileHeader,
byte[] infoHeader,
byte[] colorTable,
byte[] data,
byte[] mask) |
void |
write(DataOutput out,
boolean includeFileHeader) |
static void |
writeBmpInt(int value,
byte[] dest,
int offset,
int numBytes) |
_getFieldType, _getSetField, cache, compareTo, copied, equals, getCopy, getDeclaredField, getDeclaredFieldValue, getMyFieldList, getNew
public int width
public int height
public int bpp
public int size
public boolean isIcon
public byte[] fileHeader
public byte[] infoHeader
public byte[] colorTable
public byte[] bytes
public byte[] masks
public int bitmapBytesPerLine
public int maskBytesPerLine
public int transparentColorIndex
public static final int SizeLocation
public static final int HeightLocation
public String _fields
protected IImage decodedImage
public static final int OPTION_DONT_USE_PALETTE
public static final int OPTION_USE_RGB_OR_ARGB_ONLY
public static final int OPTION_DONT_ALLOW_ARGB
public static final int OPTION_ALWAYS_USE_ARGB
public WindowsBitmap()
public WindowsBitmap(IImage im) throws IllegalArgumentException
IllegalArgumentException
public WindowsBitmap(ImageData im, int options) throws IllegalArgumentException
IllegalArgumentException
public static final int readBmpInt(byte[] source, int offset, int numBytes)
public void copyFrom(Object other)
DataUnit
copyFrom
in interface DataUnit
copyFrom
in class DataObject
public static byte[] copyFrom(byte[] source)
public WindowsIcon toIcon()
public int getSize(boolean includeFileHeader)
public void fromInfoHeader(InputStream imageStream) throws IOException, IllegalArgumentException
IOException
IllegalArgumentException
public static final void writeBmpInt(int value, byte[] dest, int offset, int numBytes)
public IImage toImage(byte[] fileHeader, byte[] infoHeader, byte[] colorTable, byte[] data, byte[] mask)
public IImage toImage()
public byte[] getMaskForColor(int index)
public int getColorIndexAt(int x, int y)
public Color getColorFor(int colorIndex)
public void write(DataOutput out, boolean includeFileHeader) throws IOException
IOException