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.

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 & aDest Logical coordinates of the position in the target that the result should be drawn to.
CFbsDrawDevice * aSrcDrawDevice Draw device that will act as the source of the blit.
const TRect & aSrcRect The 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,
TInt aSrcStride,
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 & aDest Logical coordinates of the position in the target that the result should be drawn to.
const TUint32 * aSrcBase Base address of the source bitmap.
TInt aSrcStride Length in bytes between scanlines of the source bitmap.
const TSize & aSrcSize Size of the source bitmap in pixels.
const TRect & aSrcRect The rectangular region of the source to be blitted.