Namespaces
Variants
Actions

CMdaImageFileToBitmapUtility::ConvertL() and masked bitmap images

Jump to: navigation, search
Article Metadata

Compatibility
Platform(s): S60 1st Edition
S60 2nd Edition

Article
Created: User:Technical writer 2 (06 Aug 2003)
Last edited: lpvalente (15 Jun 2013)

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 15 June 2013, at 22:04.
97 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