how to create antialiased (truecolor?) transparent PNG
Posted: Sun Oct 28, 2007 7:34 pm
hi
i'm new to GD and i can't figure out how to create a PNG with transparent background, but with fg color antialiasing into the transparent bg...
i need a image created with ttf font
i can only seem to get it either aliased (i.e. GIF-like one-color transparency), or truecolor antialiased but with black background...
what i need sounds to me as a normal request but i just can't figure it out...
i found this http://www.phpgd.com/scripts.php?script=27 script with a promising function name (imagecreatetruecolortransparent) but i don't understand how to replace the hardcoded blank png with what i need (ttf text)
can someone explain in simple terms how to have what i need?
thanx
i'm new to GD and i can't figure out how to create a PNG with transparent background, but with fg color antialiasing into the transparent bg...
i need a image created with ttf font
i can only seem to get it either aliased (i.e. GIF-like one-color transparency), or truecolor antialiased but with black background...
what i need sounds to me as a normal request but i just can't figure it out...
i found this http://www.phpgd.com/scripts.php?script=27 script with a promising function name (imagecreatetruecolortransparent) but i don't understand how to replace the hardcoded blank png with what i need (ttf text)
can someone explain in simple terms how to have what i need?
thanx