diff -r 000000000000 -r 89d6a7a84779 Symbian3/SDK/Source/GUID-330FBB90-E622-4FD1-A189-64656F68A10D.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-330FBB90-E622-4FD1-A189-64656F68A10D.dita Thu Jan 21 18:18:20 2010 +0000 @@ -0,0 +1,50 @@ + + + + + +Displaying +an image on the screen +

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.

+
To convert an image to display on the screen +
    +
  1. 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.

    • +
    +
  2. +
  3. Include ImageConversion.h and Fbs.h header +files in the appropriate class file(s).

  4. +
  5. Make sure +you have correct capabilities information +set for your application. You need at least the ReadUserData capability.

    +
  6. +
  7. 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.

  8. +
+
+
See also +

Image Display +Library Overview

+
+
\ No newline at end of file