Image rotation algorithm

Posted by Stefano Driussi on Stack Overflow See other posts from Stack Overflow or by Stefano Driussi
Published on 2009-01-27T18:19:52Z Indexed on 2010/05/15 14:54 UTC
Read the original article Hit count: 817

I'm looking for an algorithm that rotates an image by some degrees (input).

public Image rotateImage(Image image, int degrees)

(Image instances could be replaced with int[] containing each pixel RGB values, My problem is that i need to implement it for a JavaME MIDP 2.0 project so i must use code runnable on JVM prior to version 1.5 Can anyone help me out with this ?

EDIT: I forgot to mention that i don't have SVG APIs available and that i need a method to rotate by arbitrary degree other than 90 - 180- 270

Also, no java.awt.* packages are available on MIDP 2.0

© Stack Overflow or respective owner

Related posts about java

Related posts about image-manipulation