Namespaces
Variants
Actions
Revision as of 03:08, 19 June 2012 by hamishwillee (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

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

SignpostIcon FilmReel 52.png
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 (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.

298 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