CMyPicture Class Reference

class CMyPicture : public CPicture

Inherits from

Public Member Functions
CMyPicture ( TSize , CFbsBitmap &)
CMyPicture ( TSize , CFbsBitmap &, CFbsBitmap &)
~CMyPicture ()
IMPORT_C void Draw ( CGraphicsContext &, const TPoint &, const TRect &, MGraphicsDeviceMap *)
IMPORT_C void ExternalizeL ( RWriteStream &)
IMPORT_C CFbsBitmap * GetBitmap ()
IMPORT_C CFbsBitmap * GetBitmapMask ()
IMPORT_C void GetOriginalSizeInTwips ( TSize &)
IMPORT_C void SetOriginalSizeInTwips ( TSize )
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CPicture::AddCropInPixels(MGraphicsDeviceMap *,const TMargins &)
CPicture::CPicture()
CPicture::Capability()const
CPicture::DetachFromStoreL(TDetach)
CPicture::GetCropInTwips(TMargins &)const
CPicture::GetSizeInPixels(MGraphicsDeviceMap *,TSize &)const
CPicture::GetSizeInTwips(TSize &)const
CPicture::LineBreakPossible(TUint,TBool,TBool)const
CPicture::NativePixelSize(TSize &)
CPicture::ResetToOriginal()
CPicture::ScaleFactorHeight()const
CPicture::ScaleFactorWidth()const
CPicture::SetCropInTwips(const TMargins &)
CPicture::SetScaleFactor(TInt,TInt)
CPicture::SetSizeInPixels(MGraphicsDeviceMap *,const TSize &)
CPicture::SetSizeInTwips(const TSize &)
CPicture::StoreL(CStreamStore &)const
CPicture::~CPicture()
Inherited Enumerations
CPicture:TDetach
Protected Attributes
CFbsBitmap * iBitmap
CFbsBitmap * iBitmapMask
TSize iSizeInTwips

Constructor & Destructor Documentation

CMyPicture(TSize, CFbsBitmap &)

IMPORT_C CMyPicture ( TSize aSize,
CFbsBitmap & aBitmap
)

Parameters

TSize aSize
CFbsBitmap & aBitmap

CMyPicture(TSize, CFbsBitmap &, CFbsBitmap &)

IMPORT_C CMyPicture ( TSize aSize,
CFbsBitmap & aBitmap,
CFbsBitmap & aBitmapMask
)

Parameters

TSize aSize
CFbsBitmap & aBitmap
CFbsBitmap & aBitmapMask

~CMyPicture()

IMPORT_C ~CMyPicture ( )

Member Functions Documentation

Draw(CGraphicsContext &, const TPoint &, const TRect &, MGraphicsDeviceMap *)

IMPORT_C void Draw ( CGraphicsContext & aGc,
const TPoint & aTopLeft,
const TRect & aClipRect,
MGraphicsDeviceMap * aMap
) const [virtual]

Draws a picture.

Parameters

CGraphicsContext & aGc The graphics context.
const TPoint & aTopLeft The co-ordinates where the top left corner pixel of the picture should be placed. Note that whether this is actually drawn depends on the clipping area defined.
const TRect & aClipRect A clipping rectangle that defines the area to which the function should draw. An implementation should never draw outside this rectangle. Note that the graphics context may also have a clipping rectangle set on it.
MGraphicsDeviceMap * aMap The device map for the graphics device. The implementation should use this to find the scaling to apply to the picture.

ExternalizeL(RWriteStream &)

IMPORT_C void ExternalizeL ( RWriteStream & aStream ) const [virtual]

Externalises the picture to a stream.

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

A derived class must supply an implementation of this function.

Parameters

RWriteStream & aStream The write stream.

GetBitmap()

IMPORT_C CFbsBitmap * GetBitmap ( )

GetBitmapMask()

IMPORT_C CFbsBitmap * GetBitmapMask ( )

GetOriginalSizeInTwips(TSize &)

IMPORT_C void GetOriginalSizeInTwips ( TSize & aSize ) const [virtual]

Gets the pictur's original size, in twips.

Parameters

TSize & aSize The size of the picture, in twips

SetOriginalSizeInTwips(TSize)

IMPORT_C void SetOriginalSizeInTwips ( TSize aSize )

Parameters

TSize aSize

Member Data Documentation

CFbsBitmap * iBitmap

CFbsBitmap * iBitmap [protected]

CFbsBitmap * iBitmapMask

CFbsBitmap * iBitmapMask [protected]

TSize iSizeInTwips

TSize iSizeInTwips [protected]