Page 1 of 1

Create a memory version of a mirror image

Posted: Sun Nov 22, 2009 7:27 pm
by griffinmt
Couln't find this one covered (or can't see the forest for the trees?).

I have a php script that builds a png image that get sent out to a webpage but is not stored otherwise. It is reasonable complicated to draw, but before I add the needed text to it, I have to be able to create a horizontal mirror image. Doing it from scratch requires a lot of adjustments to the calculations used.

Anyone know of a function that can take an image resource and mirror it? :?:

Re: Create a memory version of a mirror image

Posted: Sun Nov 22, 2009 7:35 pm
by John Cartwright

Re: Create a memory version of a mirror image

Posted: Sun Nov 22, 2009 8:59 pm
by griffinmt
Thanks, that was exactly what I needed. Just had to switch it to mirror across the width instead of height.

Wish they would make this a regular funtion, cause it is noticably slow. But beggers can't be choosers I guess.