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' : 

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]