transpose the origin

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
SidewinderX
Forum Contributor
Posts: 407
Joined: Fri Jul 16, 2004 9:04 pm
Location: NY

transpose the origin

Post by SidewinderX »

When you use the imagepolygon funnction the origin of the points (0,0) is in the upper left corner which is conventional, is it possable to make the origin the center of the image something say (200,200) of a 400x400 image? Similar to the g.translate() method in java?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Transform each of the coordinates accordingly and it will be.
Post Reply