PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Mon Dec 22, 2014 6:17 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sun Nov 22, 2009 8:27 pm 
Offline
Forum Commoner

Joined: Sun Jul 16, 2006 8:37 pm
Posts: 35
Location: Michigan
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? :?:


Top
 Profile  
 
PostPosted: Sun Nov 22, 2009 8:35 pm 
Offline
Site Admin
User avatar

Joined: Tue Dec 23, 2003 3:10 am
Posts: 11470
Location: Toronto
Take a look at http://www.php.net/manual/en/function.i ... .php#54155


Top
 Profile  
 
PostPosted: Sun Nov 22, 2009 9:59 pm 
Offline
Forum Commoner

Joined: Sun Jul 16, 2006 8:37 pm
Posts: 35
Location: Michigan
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group