The Symbian Image Converter Library (ICL) supports the decoding of image files. You can use the ICL architecture to load an image stored in a file or a descriptor and convert it to a CFbsBitmap
object. Use this bitmap object, for example, to display the image on the screen of the mobile device after the capture.
For a reference example, see S60 Platform: Image Converter Example on Forum Nokia.
Use the methods of the CImageDecoder
(or CBufferedImageDecoder
) class to construct your application.
Create a CImageDecoder
object using CImageDecoder::DataNewL()
(for descriptor) or CImageDecoder::FileNewL()
(for file) method.
Select a suitable plugin for the actual decoding. For a list of available plugins, see the Symbian OS Library.
Request information about the image using, for example, CImageDecoder::FrameInfo()
and CImageDecoder::FrameCount()
.
Decode the image using the CImageDecoder::Convert()
method.
Include ImageConversion.h
and Fbs.h
header files in the appropriate class file(s).
Make sure you have correct capabilities information set for your application. You need at least the ReadUserData
capability.
Make sure imageconversion.lib
, bafl.lib
, fbscli.lib
and efsrv.lib
are accessible to your linker when compiling your application by including them in your mmp
file or by editing the project properties in your IDE, depending on your build environment.