Skip to main content

trouble with rotate() of Image

2 replies [Last post]
abumami
Offline
Joined: 2007-11-19
Points: 0

Hi guys,

I'm having a little trouble with Image.rotate(). For some reason, only one rotate is allowed. As an example:
img = img.rotate(90);
img = img.rotate(90);
After running this code, the image is only rotated 90 degrees. That is, the rotate only works once. It's as if the new image instance is immutable.

What am I doing wrong? I really feel stupid.

Thanks,

Abu Mami

Message was edited by: abumami

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
chen

Hi,
lwuit-users@mobileandembedded.org wrote:
> Hi guys,
>
> I'm having a little trouble with Image.rotate(). For some reason, only one rotate is allowed. As an example:
> img = img.rotate(90);
> img = img.rotate(90);
> After running this code, the image is only rotated 90 degrees. That is, the rotate only works once. It's as if the new image instance is immutable.
>
> What am I doing wrong? I really feel stupid.
>
don't feel stupid ;-) , that's our bug.

Regards,
Chen

> Thanks,
>
> Abu Mami
> [Message sent by forum member 'abumami' (abumami)]
>
> http://forums.java.net/jive/thread.jspa?messageID=289641
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net

abumami
Offline
Joined: 2007-11-19
Points: 0

> don't feel stupid ;-) , that's our bug.

B"H, Thanks!