Re: A Problem With GD
- From: Mark Manning <markem@xxxxxxxxxxx>
- Date: Sun, 26 Feb 2006 09:55:58 -0600
Actually, the answer is to remove all of the colorAllocate commands (or colorExact or whatever other color command you want) and to just replace them with:
$rgb = ($fg_r << 16) | ($fg_g << 8) | $fg_b;
To create the RGB Hex information and then to just put that into the image via setPixel. If I wanted to do transparency I'd use the (x<<24) and give the transparency byte a value.
Uri Guttman wrote:
"S" == Sisyphus <sisyphus1@xxxxxxxxxxxxxxxxx> writes:
.
- Follow-Ups:
- Re: A Problem With GD
- From: Uri Guttman
- Re: A Problem With GD
- References:
- A Problem With GD
- From: Mark Manning
- Re: A Problem With GD
- From: A. Sinan Unur
- Re: A Problem With GD
- From: Mark Manning
- Re: A Problem With GD
- From: Sisyphus
- Re: A Problem With GD
- From: Uri Guttman
- A Problem With GD
- Prev by Date: Re: A Problem With GD
- Next by Date: Re: HELP -- UBUNTU -- Do not have a proper compiling system
- Previous by thread: Re: A Problem With GD
- Next by thread: Re: A Problem With GD
- Index(es):