Slick Forums

Discuss the Slick 2D Library
It is currently Sat May 18, 2013 3:12 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Tue Jul 19, 2011 6:23 am 
Offline

Joined: Sun Jul 11, 2010 8:15 pm
Posts: 14
In the Slick API, there is the flipped parameter for the Image class which is supposed to flip the image over the Y-axis. "flipped - True if the image should be flipped on the y-axis on load." It flips it over the X-axis.

I was using new Image("images/thing.png", true) and my image was upsidedown (X-axis flip).

Please let me know what is incorrect: the functionality, the API, or my knowledge on the definition of a Y-axis flip.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 19, 2011 7:48 am 
Offline
Regular
User avatar

Joined: Wed Apr 27, 2011 3:29 pm
Posts: 194
Location: United State of California
Well, I'm having a different problem entirely. Using new Image("images/thing.png", true) doesn't flip anything for me :(. Using Slick SVN.

If you got an upsidedown picture, then I think you're correct in saying that it's a bug, or at the very least it's not working as advertised. The y axis is a vertical line and to be flipped on this is to flip over this vertical line: left to right. This is what Adobe Illustrator does when you do Transform >> Reflect >> Vertical.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 22, 2011 10:55 pm 
Offline
Site Admin
User avatar

Joined: Thu Jan 01, 1970 12:00 am
Posts: 3143
The Y Axis flip in this case is actually referring to an vertical flipping - it's just bad terminology use in the javadoc.

Kev


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

All times are UTC


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

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