Class Index Cross Index Namespace Index

Class Gdk_Image

Gdk Image
Contained in: global
Derived from: Gdk_Handle
Derived by: none

#include <gtk--/image.h>


public function member index:

Gdk_Image();
Gdk_Image(GdkImage* image);
Gdk_Image(GdkImageType type, Gdk_Visual& visual, gint width, gint height);
void assign(GdkImage*& img);
void create(GdkImageType type, Gdk_Visual& visual, gint width, gint height);
void get(Gdk_Drawable& drawable, gint x, gint y, gint width, gint height);
guint32 get_pixel(gint x, gint y) const;
GdkImage* operator -> ();
const GdkImage* operator -> () const;
void put_pixel(gint x, gint y, guint32 pixel);
void release();
~Gdk_Image();
 

private function member index:

void destroy();
Gdk_Image& operator = (const Gdk_Image& image);
void ref();
void unref();
 

Description:

An Image is a client side representation of a pixel map. Because it is client side it is slow to use, but takes no server resources. See Gdk_Pixmap for the server side version. Images are on the client side so they are not actually handles; however, they are dynamic and uncopyable.

As a client side object it is not derived from drawable, so you can not use drawable methods on it. The only provided methods are set and get pixels. It can be drawn to a drawable with Gdk_Drawable::draw_image and yanked from a drawable with Gdk_Image::get.


Function Member Descriptions:

Gdk_Image::Gdk_Image - Create an Image.

Gdk_Image();

Gdk_Image::Gdk_Image - Wrap an existing GdkImage.

Gdk_Image(GdkImage* image);

Gdk_Image::Gdk_Image - Initialize a Image from a existing one. Create a image

Gdk_Image(GdkImageType type, Gdk_Visual& visual, gint width, gint height);

Gdk_Image::create - Create a image.

void create(GdkImageType type, Gdk_Visual& visual, gint width, gint height);

Gdk_Image::get - Grab a drawable contents.

void get(Gdk_Drawable& drawable, gint x, gint y, gint width, gint height);

Gdk_Image::get_pixel - Examine a pixel in an image.

guint32 get_pixel(gint x, gint y) const;

Gdk_Image::operator -> - Access Image directly.

GdkImage* operator -> ();

Gdk_Image::operator -> - Access Image directly.

const GdkImage* operator -> () const;

Gdk_Image::put_pixel - Store a pixel in an image.

void put_pixel(gint x, gint y, guint32 pixel);

Gdk_Image::~Gdk_Image - Delete this handle.

~Gdk_Image();