Re: JPG Image in print context
- From: "ADIS - CPD" <jorge adis com br>
- To: "muppet" <scott asofyet org>
- Cc: gtk-perl-list gnome org
- Subject: Re: JPG Image in print context
- Date: Fri, 29 Apr 2005 10:12:59 -0300
On Apr 28, 2005, at 4:03 PM, ADIS - CPD wrote:
my $pixels = $img->get_pixels;
my $imgW = $img->get_width;
my $imgH = $img->get_height;
my $imgRS = $img->get_rowstride;
printf("%s\n", $pc->rgbimage($pixels, $imgW, $imgH, $imgRS ? 'OK' :
'FAIL');
that's a syntax error -- not enough ")"s.
what version of Gtk2 are you using? there was once a bug in
Gtk2::Gdk::Pixbuf::get_pixels() that truncated the data at the first
embedded \0... fixed just before 1.040, according to the ChangeLog.
I'm using 1.081 version of Gtk2.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]