public abstract class AbstractBitmap extends Object
Parent class for all icon bitmaps, indexed or RGB.
Why is creation and read() not one thing? Because we might want to create the object, fill it step by step, and then write it.
com.ctreber.aclib.image.ico.AbstractBitmapIndexed
,
com.ctreber.aclib.image.ico.AbstractBitmapRGB
Modifier and Type | Field and Description |
---|---|
protected BitmapDescriptor |
_descriptor
Describes the bitmap.
|
Constructor and Description |
---|
AbstractBitmap(BitmapDescriptor pDescriptor) |
Modifier and Type | Method and Description |
---|---|
abstract BufferedImage |
createImageRGB()
Create an RGB image rendition of this bitmap.
|
protected int |
getColorCount() |
BitmapDescriptor |
getDescriptor()
Get the bitmap descriptor.
|
protected int |
getHeight()
The (manipulated height - read on).
|
protected int |
getWidth()
Get the bitmap width.
|
(package private) abstract void |
read(AbstractDecoder pDec)
Read bitmap from the decoder into class internal data structures.
|
(package private) void |
setDescriptor(BitmapDescriptor pDescriptor) |
String |
toString()
Simply returns the class name which reflects the bitmap type.
|
protected BitmapDescriptor _descriptor
public AbstractBitmap(BitmapDescriptor pDescriptor)
pDescriptor
- The image descriptor.public abstract BufferedImage createImageRGB()
abstract void read(AbstractDecoder pDec) throws IOException
pDec
- The decoder.IOException
protected int getHeight()
protected int getWidth()
protected int getColorCount()
public BitmapDescriptor getDescriptor()
void setDescriptor(BitmapDescriptor pDescriptor)
pDescriptor
- The descriptor to set.public String toString()
toString
in class Object
Object.toString()
TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)