Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Embedding Overview


Purpose

Provides a concept of a picture object, independent of whether it is a bitmap or drawing, and support for storing and restoring pictures.

[Top]


Architectural relationships

There are two important uses of pictures:

[Top]


Description

The API has three key concepts: picture, picture header, and picture factory.


Picture

The picture interface defines a drawable item, that can be stored and restored, and possibly cropped and scaled. Derived classes implement the interface for particular types of picture.

The interface is provided by CPicture. The capabilities class, TPictureCapability, encapsulates whether the picture supports cropping and scaling.


Picture header

When a picture is stored, a picture header must be as well. The header identifies which concrete picture class that should be used to restore the picture's data (through a UID), and how to access the picture's data (through a swizzle).

The picture header is provided by TPictureHeader.


Picture factory

The picture factory is an abstract interface for instantiating and restoring new CPicture-derived objects. A concrete derived class will create pictures of one or more specific types. Supplied with information from a picture header, a picture factory creates an instance of the appropriate picture class, and tells the instance to internalise the picture data from the store.

The interface is provided by MPictureFactory.

[Top]


See also

Text and Text Attributes Overview