TPictureHeader Class Reference

#include <gdi.h>

Link against: gdi.lib

class TPictureHeader
Public Attributes
TSwizzle< CPicture >iPicture
TUid iPictureType
TSize iSize
Public Member Functions
TPictureHeader()
IMPORT_C voidDeletePicture()
IMPORT_C voidExternalizeL(RWriteStream &)
IMPORT_C voidInternalizeL(RReadStream &)

Detailed Description

Picture header providing an interface to a stored picture. The header holds:

the picture's type, encoded as a UID, which ensures that it will be restored to the correct picture type

the picture's size, which facilitates deferred loading

the stream ID of the picture body, which is replaced by a pointer to the picture object when it has been restored.

Member Attribute Documentation

iPicture

TSwizzle< CPicture >iPicture

A swizzle storing either the ID of the stream in which the picture is stored, or a pointer to the internalised picture.

iPictureType

TUid iPictureType

A UID specifying the type of the picture.

iSize

TSize iSize

The original size of the picture.

Constructor & Destructor Documentation

TPictureHeader ( )

IMPORT_CTPictureHeader()

Constructs a default picture header.

Member Function Documentation

DeletePicture ( )

IMPORT_C voidDeletePicture()

Deletes the internalised picture.

The picture can only be deleted if the picture has been internalized.

ExternalizeL ( RWriteStream & )

IMPORT_C voidExternalizeL(RWriteStream &aStream)const

Externalises a picture header object to a write stream.

The presence of this function means that the standard templated stream operator<<() is available to externalise objects of this class.

Parameters
aStreamThe write stream.

InternalizeL ( RReadStream & )

IMPORT_C voidInternalizeL(RReadStream &aStream)

Internalises a picture header object from a read stream.

The presence of this function means that the standard templated stream operator>>() is available to internalise objects of this class.

Parameters
aStreamThe read stream.