Re: Gtk2::Gdk::Drawable problem
- From: Domsodi Gergely <doome uhulinux hu>
- To: gtk-perl-list gnome org
- Subject: Re: Gtk2::Gdk::Drawable problem
- Date: Mon, 17 Nov 2003 21:41:05 +0100
Sorry... I ment Pixbuf everywhere.. :-))
After reading the C API, I recognized that the first parameter should be
a Pixmap, and if it is null a new pixmap is created and returned. That's
okay, but if I put undef there, I get a Usage about the function.
So what is the correct use of get_from_drawable?
On Mon, 17 Nov 2003 21:19:03 +0100
Domsodi Gergely <doome uhulinux hu> wrote:
Just one more question.
How to initalize a pixmap?
I tried:
my $pixmap = Gtk2::Gdk::Pixmap->get_from_drawable($drawable,undef, 0,
0, 0, 0, $width, $height);
but it doesn't work:
variable is not of type Gtk2::Gdk::Pixbuf
I think I should initalize GdkPixbuf, but I don't know what parameters
it needs. (eg. what kind of colorspace).
Shouldn't the above code work?
--
Domsodi Gergely / UHU-Linux
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list
--
Domsodi Gergely / UHU-Linux
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]