MFastBlit2 Class Reference

class MFastBlit2

MFastBlit2 provides optimised blitting for a number of special cases. It is used for basic blitting where source and destination pixel formats match.

Public Member Functions
const TUint32 *Bits()
TInt WriteBitmapBlock(const TPoint &, CFbsDrawDevice *, const TRect &)
TInt WriteBitmapBlock(const TPoint &, const TUint32 *, TInt, const TSize &, const TRect &)

Member Functions Documentation

Bits()

const TUint32 *Bits()const [pure virtual]

Returns a pointer to the first pixel.

WriteBitmapBlock(const TPoint &, CFbsDrawDevice *, const TRect &)

TInt WriteBitmapBlock(const TPoint &aDest,
CFbsDrawDevice *aSrcDrawDevice,
const TRect &aSrcRect
)[pure virtual]

Performs basic blitting. Source and destination pixel formats must match. Assumes that aSrcRect is contained by the source device. Assumes that the resulting destination rectangle is contained by the destination device.

Parameters

const TPoint & aDestLogical coordinates of the position in the target that the result should be drawn to.
CFbsDrawDevice * aSrcDrawDeviceDraw device that will act as the source of the blit.
const TRect & aSrcRectThe rectangular region of the source to be blitted.

WriteBitmapBlock(const TPoint &, const TUint32 *, TInt, const TSize &, const TRect &)

TInt WriteBitmapBlock(const TPoint &aDest,
const TUint32 *aSrcBase,
TIntaSrcStride,
const TSize &aSrcSize,
const TRect &aSrcRect
)[pure virtual]

Performs basic blitting. Source and destination pixel formats must match. Assumes that aSrcRect is contained by the source device. Assumes that the resulting destination rectangle is contained by the destination device.

Parameters

const TPoint & aDestLogical coordinates of the position in the target that the result should be drawn to.
const TUint32 * aSrcBaseBase address of the source bitmap.
TInt aSrcStrideLength in bytes between scanlines of the source bitmap.
const TSize & aSrcSizeSize of the source bitmap in pixels.
const TRect & aSrcRectThe rectangular region of the source to be blitted.