>How can i rotate a java image without using Graphics2D &
>AffineTransform ? .Actually i want to implement this in j2me
if it is a small enough image, you can grab it pixel by pixel, and
plop it into a new Image array pixel by pixel where it belongs.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Oliver Wong - 07 Feb 2006 16:56 GMT
>>How can i rotate a java image without using Graphics2D &
>>AffineTransform ? .Actually i want to implement this in j2me
>
> if it is a small enough image, you can grab it pixel by pixel, and
> plop it into a new Image array pixel by pixel where it belongs.
The other method is to start from the target image, and then "work
backwards" and determine which pixel to "plop" from in the source image. You
might do "nearest-neighbour" approximation, where the same pixel from the
source might be used for two or more pixels in the target, or some sort of
weighed-average of the neighbouring pixels in the source image depending on
what your sin/cosine functions return as the source coordinates.
Depends on how much processing power you have available to you, and how
patient your users are.
- Oliver
rathees_h@yahoo.com - 08 Feb 2006 08:51 GMT
can u give me any code samples or any site adreess
Oliver Wong - 08 Feb 2006 15:00 GMT
> can u give me any code samples or any site adreess
I googled for "Image rotation" and got
http://www.codeguru.com/Cpp/G-M/bitmap/specialeffects/article.php/c1747/
http://www.lawrencegoetz.com/programs/image3d/
And others.
- Oliver
>How can i rotate a java image without using Graphics2D &
>AffineTransform ? .Actually i want to implement this in j2me.
If all you want is a rotating icon, prerotate icon and keep around png
files of the icon at different degrees of rotation.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.