Namespaces
Variants
Actions

Archived:GIF transparency does not work correctly on Series 40 3rd Edition devices (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}}.

Article Metadata

Compatibility
Platform(s): Series 40 3rd Edition (initial release)

Article
Created: User:Technical writer 1 (25 Jun 2007)
Last edited: hamishwillee (19 Jun 2012)

Description

When drawing GIF images with transparency on canvas using the Image.createImage() method, the transparent pixels become opaque. This results in corrupted graphics.

How to reproduce

Load the picture using the following method:

image=Image.createImage("/example.gif");

Then apply the image to the canvas using the drawImage() method.

Solution

Use PNG images instead of GIFs. The problem does not occur with images in PNG format.

This page was last modified on 19 June 2012, at 06:54.
130 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