CMyPicture Class Reference

class CMyPicture : public CPicture

Inherits from

Public Member Functions
CMyPicture(TSize, CFbsBitmap &)
CMyPicture(TSize, CFbsBitmap &, CFbsBitmap &)
~CMyPicture()
IMPORT_C voidDraw(CGraphicsContext &, const TPoint &, const TRect &, MGraphicsDeviceMap *)
IMPORT_C voidExternalizeL(RWriteStream &)
IMPORT_C CFbsBitmap *GetBitmap()
IMPORT_C CFbsBitmap *GetBitmapMask()
IMPORT_C voidGetOriginalSizeInTwips(TSize &)
IMPORT_C voidSetOriginalSizeInTwips(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_CCMyPicture(TSizeaSize,
CFbsBitmap &aBitmap
)

Parameters

TSize aSize
CFbsBitmap & aBitmap

CMyPicture(TSize, CFbsBitmap &, CFbsBitmap &)

IMPORT_CCMyPicture(TSizeaSize,
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 voidDraw(CGraphicsContext &aGc,
const TPoint &aTopLeft,
const TRect &aClipRect,
MGraphicsDeviceMap *aMap
)const [virtual]

Draws a picture.

Parameters

CGraphicsContext & aGcThe graphics context.
const TPoint & aTopLeftThe 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 & aClipRectA 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 * aMapThe device map for the graphics device. The implementation should use this to find the scaling to apply to the picture.

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(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 & aStreamThe write stream.

GetBitmap()

IMPORT_C CFbsBitmap *GetBitmap()

GetBitmapMask()

IMPORT_C CFbsBitmap *GetBitmapMask()

GetOriginalSizeInTwips(TSize &)

IMPORT_C voidGetOriginalSizeInTwips(TSize &aSize)const [virtual]

Gets the pictur's original size, in twips.

Parameters

TSize & aSizeThe size of the picture, in twips

SetOriginalSizeInTwips(TSize)

IMPORT_C voidSetOriginalSizeInTwips(TSizeaSize)

Parameters

TSize aSize

Member Data Documentation

CFbsBitmap * iBitmap

CFbsBitmap *iBitmap[protected]

CFbsBitmap * iBitmapMask

CFbsBitmap *iBitmapMask[protected]

TSize iSizeInTwips

TSize iSizeInTwips[protected]