Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- What's wrong with transparency by GD?
April 30, 2008, 8:05 am
rate this thread
circles. Could anybody tell me what's wrong in the following codes?
$im = new GD::Image(550,450);
$white = $im->colorAllocate(255,255,255);
$black = $im->colorAllocate(0,0,0);
$red = $im->colorAllocateAlpha(255,0,0,119);
$blue = $im->colorAllocateAlpha(0,0,255,119);
print IMG $im->png;
Re: What's wrong with transparency by GD?
New questions should go in new threads.
You need to initialize the background.
# Draw a transparent background
$bkg = $im->colorAllocateAlpha(0,0,0,127);
$im->alphaBlending(0); # replace pixels
# Now draw with blending
now draw your circles
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum