Re: gnome-print and grayimages



On 03/29/01 Wolfgang Sourdeau wrote:
> Is it possible that printing images with gnome-print doesn't work for
> version 0.25 (debian) ?
> 
> Even by testing the print.pl example of Perl gnome-print binding this
> doesn't work.

The example should read something like:

$width = 256;
$height = 60;
$x = 250;
$y = 200;
$image = pack("C*", 0..$width-1) x $height;
$context->gsave;
$context->concat($width, 0, 0, -$height, $x, $y);
$context->grayimage($image, $width, $height);
$context->grestore;

i.e. you need to concat the proper affine matrix to have the
image show up.

lupus

-- 
-----------------------------------------------------------------
lupus debian org                                     debian/rules
lupus ximian com                             Monkeys do it better




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