Search found 3 matches

by Existance0
Tue Sep 08, 2009 7:43 am
Forum: PHP - Code
Topic: Rounding corners using gd
Replies: 3
Views: 157

Re: Rounding corners using gd

Example:
http://arch-games.com/FFCG/test.html

OK, if I set transparency then it just switches the colors. As seen in the top left corner. Rotating the image at all makes the image become a white square as seen in the other three corners.
by Existance0
Mon Sep 07, 2009 11:08 pm
Forum: PHP - Code
Topic: Rounding corners using gd
Replies: 3
Views: 157

Re: Rounding corners using gd

I actually found that it is most likely related to setting the transparency. I had originally had lime green set as a transparent color but later removed it so that was an issue but I was using... imagecolortransparent(); wrong. I took out these lines and ended up getting the top left corner to work...
by Existance0
Mon Sep 07, 2009 10:57 pm
Forum: PHP - Code
Topic: Rounding corners using gd
Replies: 3
Views: 157

Rounding corners using gd

So, it seemed to work at first when I was only rounding the top right corner but once I rotated the image for the other corners it just puts white boxes there. //Create the image $img=imagecreatetruecolor(250,350);   //The following rounds the corners $corner=imagecreatefrompng('rounded_corner.png')...