×
Namespaces

Variants
Actions
Revision as of 03:08, 19 June 2012 by hamishwillee (Talk | contribs)

Archived:CreateRGBImage() does not work properly on Nokia 7610 (Known Issue)

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}}.

Article Metadata
Tested with
Devices(s): Nokia 7610
Compatibility
Platform(s): S60 2nd Edition, FP1
S60 2nd Edition FP1
Article
Created: User:Technical writer 1 (08 Mar 2007)
Last edited: hamishwillee (19 Jun 2012)

Overview

If you call the createRGBImage() method with more than 4096 bytes and alpha = true on the Nokia 7610, the phone crashes.

Description

If you take a picture with the camera using the getSnapshot() method and create an Image with Image.createRGBImage(rgbData, img.getWidth(),img.getHeight(), true); the phone hangs when you pass true in Image.createRGBImage(rgbData, w,h,true). The last Boolean parameter turns on processAlpha. If you set it to false, the phone no longer crashes and the code works perfectly.

Solution

If you do not need to consider the alpha channel, set the value in that method to false. The alpha values will be treated as opaque.

82 page views in the last 30 days.
×