Main Page
Widgets
Namespaces
Book
Gdk::Image Class Reference Inheritance diagram for Gdk::Image:
[legend ] List of all members.
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)
Constructor & Destructor Documentation
virtual Gdk::Image::~Image
(
)
[virtual]
Member Function Documentation
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() .
Returns: Colormap for the image.
guint32 Gdk::Image::get_pixel
(
int
x ,
int
y
)
const
const GdkImage* Gdk::Image::gobj
(
)
const [inline]
GdkImage* Gdk::Image::gobj
(
)
[inline]
GdkImage* Gdk::Image::gobj_copy
(
)
void Gdk::Image::put_pixel
(
int
x ,
int
y ,
guint32
pixel
)
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.
Parameters:
Friends And Related Function Documentation
Glib::RefPtr <Gdk::Image> wrap
(
GdkImage*
object ,
bool
take_copy = false
)
[related]
The documentation for this class was generated from the following file:
Generated for gtkmm by
Doxygen 1.3-rc1 © 1997-2001