Re: JPG Image in print context
- From: Emmanuele Bassi <ebassi gmail com>
- To: ADIS - CPD <jorge adis com br>
- Cc: gtk-perl-list gnome org
- Subject: Re: JPG Image in print context
- Date: Thu, 28 Apr 2005 10:19:00 +0200
Hi,
On Wed, 2005-04-27 at 17:05 -0300, ADIS - CPD wrote:
How to put a jpg image in a Gnome2::Print::Context???
You have these methods:
Gnome2::Print::Context::grayimage
Gnome2::Print::Context::rgbimage
Gnome2::Print::Context::rgbaimage
To which you must pass the pixel buffer (255 value marking and one-byte
per pixel, three-byte per pixel and four-byte per pixel, respectively).
So, you must convert a JPEG image to the appropriate buffer (using
pack).
Ciao,
Emmanuele.
--
Emmanuele Bassi <ebassi gmail com>
Web site: http://log.emmanuelebassi.net
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]