Working with pixels
- From: Gregor Pirnaver <gregor pirnaver email si>
- To: gtk-perl mailing list <gtk-perl-list gnome org>
- Subject: Working with pixels
- Date: Sun, 20 Apr 2003 08:51:59 +0200
Hello,
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,
$height);
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]