Re: Gtk2::Gdk::Drawable problem



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



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