Re: GD transparency problem

From: Date: Mon, 12 May 2003 10:26:17 +0000
Subject: Re: GD transparency problem
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-147287@lists.php.net to get a copy of this message
Richard, I tried 0 and 100 - which gives either one image or the other - which makes sense now that you mention pct stand for per cent. And no, it's not text. This is part of a small utility to help people locate 'départements' in France. You can enter the number of the département, or its name (or part of it). In the first case, the database search will return just one result, in the latter case it could be several results. What I want to do is show a map of France and overlay highlight portions marking the positions of the départements found in the search. I have a background map plus 95 overlays, each with a separate département as a red patch on a transparent (I thought) background. > > I believe the "pct" value is the "percentage" of the first/second image > to use in the "merge" process. > > I think GD is "mixing" the two colors of the original pixels in each > image together to achive the final color and "pct" tells GD how much to > lean towards the first/second image. > > So that would cause your "ghost" effect. > > If you want a total blot-out overlay, try 100. Or maybe 0. Not sure > which end of the scale you want. > > If that still doesn't work, are the "overlay" images just a bit of text? >

« previous php.general (#147287) next »