The image can be manipulated with get_pixel() and put_pixel(), or alternatively by changing the actual pixel data, though manipulating the pixel data requires complicated code to cope with the different formats that may be used. To draw a Gdk::Image in a Gdk::Window or Gdk::Pixmap use Gdk::Drawable::draw_image().
|
Public Member Functions |
virtual | ~Image () |
GdkImage* | gobj () |
| Provides access to the underlying C GObject.
|
const GdkImage* | gobj () const |
| Provides access to the underlying C GObject.
|
GdkImage* | gobj_copy () |
| Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
|
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.
|
Glib::RefPtr<const Colormap> | get_colormap () const |
| Retrieves the colormap for a given image, if it exists.
|
ImageType | get_image_type () const |
Glib::RefPtr<Visual> | get_visual () |
Glib::RefPtr<const Visual> | get_visual () const |
ByteOrder | get_byte_order () const |
int | get_width () const |
int | get_height () const |
guint16 | get_bpp () const |
guint16 | get_bpl () const |
guint16 | get_bits_per_pixel () const |
void* | get_mem () |
const void* | get_mem () const |
void* | get_windowing_data () const |
Static Public Member Functions |
Glib::RefPtr<Image> | create (ImageType type, const Glib::RefPtr<Visual>& visual, int width, int height) |
Protected Member Functions |
| Image (ImageType type, const Glib::RefPtr<Visual>& visual, int width, int height) |
| Instantiate a new Gdk::Image.
|
Related Functions |
(Note that these are not member functions.)
|
Glib::RefPtr<Gdk::Image> | wrap (GdkImage* object, bool take_copy=false) |