Re: JPG Image in print context

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.

Found: Poop
Someone's dog lost some poop in front of the Studio Theatre. Unfortunately, this article has been slightly damaged since it was neglectfully left on the sidewalk. It is available to its rightful owner (or its owner's rightful owner) if they so desire to come and scrape it off my shoe.
  -- someplace on the internet

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