![]() |
![]() |
Public Methods | |
virtual | ~Image () |
GdkImage* | gobj () |
const GdkImage* | gobj () const |
GdkImage* | gobj_copy () |
void | put_pixel (int x, int y, guint32 pixel) |
guint32 | get_pixel (int x, int y) const |
void | set_colormap (const Glib::RefPtr<Colormap>& colormap) |
Sets the colormap for the image to the given colormap. | |
Glib::RefPtr<Colormap> | get_colormap () |
Retrieves the colormap for a given image, if it exists. | |
Static Public Methods | |
Glib::RefPtr<Image> | create (ImageType type, const Glib::RefPtr<Visual>& visual, int width, int height) |
Protected Methods | |
Image (ImageType type, const Glib::RefPtr<Visual>& visual, int width, int height) | |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr<Gdk::Image> | wrap (GdkImage* object, bool take_copy=false) |
|
|
|
|
|
|
|
Retrieves the colormap for a given image, if it exists. An image will have a colormap if the drawable from which it was created has a colormap, or if a colormap was set explicitely with set_colormap().
|
|
|
|
Reimplemented from Glib::ObjectBase. |
|
Reimplemented from Glib::ObjectBase. |
|
|
|
|
|
Sets the colormap for the image to the given colormap. Normally there's no need to use this function, images are created with the correct colormap if you get the image from a drawable. If you create the image from scratch, use the colormap of the drawable you intend to render the image to.
|
|
|