×
Namespaces

Variants
Actions

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

From Nokia Developer 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
CompatibilityArticle
Created: User:Technical writer 2 (24 Aug 2006)
Last edited: hamishwillee (30 Jul 2013)

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 30 July 2013, at 11:11.
44 page views in the last 30 days.
×