Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Archived:Flipping or rotating images in Nokia 6680 using Java ME

From Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

The article is believed to be still valid for the original topic scope.

Article Metadata
Tested with
Devices(s): Nokia 6680
Created: User:Technical writer 2 (24 Aug 2006)
Last edited: hamishwillee (30 Jul 2013)


Flipping or rotating images in Nokia 6680.


If the MIDP 2.0 API is used, the device very quickly runs out memory.

If the Nokia API is used, transparent pixels in the image become opaque.

Whenever the user tries to rotate or flip images, transparent pixels are not only converted into opaque but the device also does not show images completely but in fragments, usually divided into many parts.

The workaround for the problem with the Nokia UI API is to use the MIDP 2.0 API but if the problem still occurs with Graphics.drawRegion(), you can also use the Image.createImage() method with the signature below.

public static Image createImage(Image image,
int x,
int y,
int width,
int height,
int transform)

This workaround will be costly because it will save the JAR file size but it won't be able to save the heap memory. Hence this workaround will help only when JAR file size is limited but the amount of heap memory is sufficient.

This page was last modified on 30 July 2013, at 08:11.
45 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.