Namespaces
Variants
Actions

Flipping or rotating images in Nokia 6680 using Java ME

Jump to: navigation, search
Archived.png
Archived: 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.


SignpostIcon Palette 52.png
Article Metadata

Tested with
Devices(s): Nokia 6680

Compatibility
Platform(s): S60 2nd Edition

Article
Created: User:Technical writer 2 (24 Aug 2006)
Last edited: lpvalente (31 Oct 2012)

Overview

Flipping or rotating images in Nokia 6680.

Description

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 31 October 2012, at 13:11.
121 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved