Working with pixels


what structure do I need to use if I want to work with 
pixels of an image?

So far I have found:
Gtk::Gdk::Pixbuf->get_pixels( $row, $col )
Gtk::Gdk::Pixbuf->put_pixels( $data, $row, $col )

But what is $data anyway?

I have also found
Gtk::Gdk::Image->put_pixel( $image, $x, $y, $pixel ); 
Gtk::Gdk::Image->get_pixel( $image, $x, $y );

But how do I read a bitmap into an "Image":
Gtk::Gdk::Image->new_bitmap ( $visual, $data, $width, 

Again: what is visual? What is data?

Gregor @ Mandrake 9.1 -> KDE 3.1.0 -> Kmail 1.5 -> ;-)

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]