Re: JPG Image in print context



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]