[/list] (I'm not sure if the GD library supports these, but they'd be useful for things like custom borders and corners.)[/QUOTE]I added those tonight as well rotate 180 degrees. I thought it was going to be difficult but once I did the first one the other four only took a couple of minute each. [code=php]function Rotate90() { $w = $this->source_width; $h = $this->source_height; $slate = $this->slate($h, $w); for ($x = 0; $x < $w; $x++)
{ for ($y = 0; $y < $h; $y++)
{ extract(imagecolorsforindex($this->source, ImageColorAt($this->source,$x,$y))); ImageSetPixel($slate, (($h - 1) - $y), $x, ImageColorAllocatealpha($slate, $red, $green, $blue, $alpha)); } } imagedestroy($this->source); $this->source = $slate; $this->source_width = $h; $this->source_height = $w; } [/code]I don't know if that is clear. I just created a second image and copied the first to the second one pixel at a time but to different coordinates, then destroyed the first one and substituted it with the second.