Container for image data.
More...
- Description:
- The Image class defines the interface to image classes, ie. classes that contain image data, be it in the form of bitmaps or vectors.
- See Also
- os::BitmapImage, os::VectorImage, os::Bitmap, os::ImageView
- Author
- Henrik Isaksson (henri.nosp@m.k@bo.nosp@m.ing.n.nosp@m.u)
- Description:
- These values are used to specify to ApplyFilter() which filter to apply.
- See Also
- ApplyFilter()
Enumerator |
---|
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.
- See Also
- GlowFilter
|
F_COLORIZE |
Blend all pixels with a certain colour.
- See Also
- ColorizeFilter
|
status_t Image::ApplyFilter |
( |
uint32 |
nFilterID | ) |
|
|
virtual |
status_t Image::ApplyFilter |
( |
const Message & |
cFilterData | ) |
|
|
virtual |
virtual void os::Image::Draw |
( |
const Point & |
cPos, |
|
|
View * |
pcView |
|
) |
| |
|
pure virtual |
virtual void os::Image::Draw |
( |
const Rect & |
cSource, |
|
|
const Rect & |
cDest, |
|
|
View * |
pcView |
|
) |
| |
|
pure virtual |
- Description:
- This method renders the image to a View object.
- Parameters
-
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. |
- Todo:
- Implement scaling. Needs support from os::View.
- See Also
- os::View
- Author
- Henrik Isaksson (henri.nosp@m.k@bo.nosp@m.ing.n.nosp@m.u)
Implemented in os::BitmapImage.
Rect Image::GetBounds |
( |
void |
| ) |
const |
Point Image::GetSize |
( |
void |
| ) |
const |
|
virtual |
- Description:
- Returns the size of the image. Note! This returns the actual size in pixels.
- See Also
- SetSize(), GetBounds()
- Author
- Henrik Isaksson (henri.nosp@m.k@bo.nosp@m.ing.n.nosp@m.u)
Reimplemented in os::BitmapImage.
References os::Image::Private::m_cSize.
Referenced by os::TreeViewStringNode::AttachToView(), os::TreeView::Private::CalcExpImgBounds(), os::MenuItem::Draw(), GetBounds(), os::MenuItem::GetColumnWidth(), os::MenuItem::GetContentSize(), os::TreeViewStringNode::GetHeight(), os::PopupMenu::GetPreferredSize(), os::ImageButton::GetPreferredSize(), os::ImageView::GetPreferredSize(), os::PopupMenu::MouseDown(), os::TreeViewCheckNode::Paint(), os::PopupMenu::Paint(), os::ImageButton::Paint(), os::ImageView::Paint(), os::TreeViewStringNode::Paint(), os::ImageView::Refresh(), and os::IconView::Private::RenderIcon().
virtual const String os::Image::ImageType |
( |
void |
| ) |
const |
|
pure virtual |
virtual bool os::Image::IsValid |
( |
void |
| ) |
const |
|
pure virtual |
status_t Image::SetSize |
( |
const Point & |
cSize | ) |
|
|
virtual |
enum { ... } os::Image::FilterType |