×
Namespaces

Variants
Actions

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
Article
Created: User:Technical writer 1 (08 Mar 2007)
Last edited: hamishwillee (15 Aug 2013)

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.

This page was last modified on 15 August 2013, at 10:19.
49 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.

×