Re: A Problem With GD




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:

.