Reputation: 157
Does anyone know of a way to rotate an image horizontally in Java sort of like this?
http://puu.sh/48iLc.png Original
http://puu.sh/48iHN.jpg Rotated
I just got the rotated one from MS Word because I knew they have those type of rotations.
Anyone have an idea?
Upvotes: 0
Views: 172
Reputation: 11006
This is referred to as shear in Java (though I call it skew.)
Use the AffineTransform class to "shear" your image. That will produce the effect you want.
Here's a tutorial on shearing.
Upvotes: 2