Google

logo top
Main Page   Widgets   Namespaces   Book  

Gdk::Image Class Reference

Inheritance diagram for Gdk::Image:

Inheritance graph
[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<Colormapget_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]
 

Gdk::Image::Image ( ImageType    type,
const Glib::RefPtr<Visual>&    visual,
int    width,
int    height
[protected]
 


Member Function Documentation

Glib::RefPtr<Image> Gdk::Image::create ( ImageType    type,
const Glib::RefPtr<Visual>&    visual,
int    width,
int    height
[static]
 

Glib::RefPtr<Colormap> Gdk::Image::get_colormap (  
 

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]
 

Reimplemented from Glib::ObjectBase.

GdkImage* Gdk::Image::gobj (   [inline]
 

Reimplemented from Glib::ObjectBase.

GdkImage* Gdk::Image::gobj_copy (  
 

void Gdk::Image::put_pixel ( int    x,
int    y,
guint32    pixel
 

void Gdk::Image::set_colormap ( const Glib::RefPtr<Colormap>&    colormap
 

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:
colormap A Gdk::Colormap.


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