Inheritance diagram for os::Image:
Public Types | |
enum | { F_NONE, F_GRAY, F_HIGHLIGHT, F_ALPHA_TO_OVERLAY, F_GLOW, F_COLORIZE } |
Filter types. More... | |
Public Member Functions | |
Image () | |
Default constructor. | |
virtual | ~Image () |
virtual const String | ImageType (void) const=0 |
Run-time type checking. | |
virtual bool | IsValid (void) const=0 |
Check if object is initialized and ready to be used. | |
virtual status_t | Load (StreamableIO *pcSource, const String &cType="")=0 |
virtual status_t | Save (StreamableIO *pcDest, const String &cType)=0 |
virtual void | Draw (const Point &cPos, View *pcView)=0 |
Draw an image to a View. | |
virtual void | Draw (const Rect &cSource, const Rect &cDest, View *pcView)=0 |
Draw an image to a View. | |
virtual status_t | SetSize (const Point &cSize) |
Set the size of the image. | |
virtual Point | GetSize (void) const |
Get image size. | |
Rect | GetBounds (void) const |
Get image bounds. | |
virtual status_t | ApplyFilter (uint32 nFilterID) |
virtual status_t | ApplyFilter (const Message &cFilterData) |
Public Attributes | |
enum os::Image:: { ... } | FilterType |
Filter types. | |
Classes | |
class | Private |
anonymous enum |
F_NONE | Does nothing. |
F_GRAY | Creates a greyed out ("disabled") image. |
F_HIGHLIGHT | Creates a highlighted ("selected") image. |
F_ALPHA_TO_OVERLAY | Converts alpha channel data to colour overlay. |
F_GLOW |
Adds a "glowing" outline to the image.
|
F_COLORIZE |
Blend all pixels with a certain colour.
|
Image::Image | ( | ) |
Image::~Image | ( | ) | [virtual] |
virtual const String os::Image::ImageType | ( | void | ) | const [pure virtual] |
Implemented in os::BitmapImage.
virtual bool os::Image::IsValid | ( | void | ) | const [pure virtual] |
Implemented in os::BitmapImage.
virtual status_t os::Image::Load | ( | StreamableIO * | pcSource, | |
const String & | cType = "" | |||
) | [pure virtual] |
Implemented in os::BitmapImage.
virtual status_t os::Image::Save | ( | StreamableIO * | pcDest, | |
const String & | cType | |||
) | [pure virtual] |
Implemented in os::BitmapImage.
Implemented in os::BitmapImage.
virtual void os::Image::Draw | ( | const Rect & | cSource, | |
const Rect & | cDest, | |||
View * | pcView | |||
) | [pure virtual] |
cSource | Rectangular region in the source Image to draw. | |
cDest | Rectangular region in the destination View to draw the image in. If the size of cDest is not equal to cSource, the image data from cSource will be scaled to fit. | |
pcView | The View to draw in. |
Implemented in os::BitmapImage.
status_t Image::SetSize | ( | const Point & | cSize | ) | [virtual] |
cSize | The new size. |
Reimplemented in os::BitmapImage.
Point Image::GetSize | ( | void | ) | const [virtual] |
Reimplemented in os::BitmapImage.
Rect Image::GetBounds | ( | void | ) | const |
status_t Image::ApplyFilter | ( | uint32 | nFilterID | ) | [virtual] |
status_t Image::ApplyFilter | ( | const Message & | cFilterData | ) | [virtual] |
Reimplemented in os::BitmapImage.
enum { ... } os::Image::FilterType |