Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

CMdaImageFileToBitmapUtility::ConvertL() and masked bitmap images

From 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
Compatibility
Platform(s): S60 1st Edition
S60 2nd Edition
S60 2nd Edition (initial release)
S60 1st Edition
Article
Created: User:Technical writer 2 (06 Aug 2003)
Last edited: lpvalente (11 Aug 2014)

Overview

CMdaImageFileToBitmapUtility::ConvertL() and masked bitmap images.

Description

When using CMdaImageFileToBitmapUtility to convert a .gif image with a mask to bitmap (CFbsBitmap), I get an empty bitmap for both the image and the mask. What is wrong?

Solution

Mask bitmaps should always be 2-color (monochrome) bitmaps. While some APIs accept mask bitmaps with a higher color depth, they may not work correctly. Also, monochrome mask bitmaps reserve less memory. The same applies, for example, to CWindowGc::BitBltMasked().

This page was last modified on 11 August 2014, at 19:02.
51 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.

×