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

[mgp-users 01363] Re: Transparency of image background



Hi,

From: Clem Pryke <pryke@aupc1.uchicago.edu>
Subject: [mgp-users 01362] Transparency of image background
Date: Thu, 18 Nov 2004 10:28:46 -0600
Message-ID: <>

 > 1) When pgm produced as .gscache from eps render of grayscale image is displayed the background was and still is transparent, and grayscale is translated to current "fore" color. For a ppm produced from eps render of color image in 1.07a the background remains white, but in 1.11b (and 1.09) it is now transparent. There is no translation of the other image colors making some plots look quite ugly - see example below.
 > 
 > I traced this to change in file draw.c function image_setcolor. In 1.07 "case ITRUE" does nothing whereas in 1.09 it does "image->trans = memToVal(image->data, image->pixlen);"
 > 
 > In general I would like to be able to control whether the background of a given image gets made transparent - presumably with a switch on "%newimage" directive.

Hmm, yes, I agree with you.. I will check the code and fix this. 
As a work around, you can avoid using ITRUE image by add -colors 
option for %newimage directive.

 > 2) My script to inject latex using filter no longer works with 1.11b. Does 
 > work with 1.09a though...

In recent versions, you need to add -U option to invoke external programs 
from mgp for security reasons.

Thanks,
--
Yoshifumi Nishida
nishida@csl.sony.co.jp