MFastBlit Class Reference

class MFastBlit

MFastBlit provides optimised blitting for a number of special cases. It is similar to MAlphaBlend except that instead of taking generic buffers as parameters, it takes pointers to scanlines in their native format.

Member Functions Documentation

WriteAlphaLineEx(TInt, TInt, TInt, TInt, const TUint32 *, TDisplayMode, TInt, const TUint32 *, MAlphaBlend::TShadowing)

voidWriteAlphaLineEx(TIntaX,
TIntaY,
TIntaLength,
TIntaSrcX,
const TUint32 *aSrcPtr,
TDisplayModeaSrcFormat,
TIntaMaskX,
const TUint32 *aMaskPtr,
MAlphaBlend::TShadowingaShadowing
)[pure virtual]

Performs Alpha blending.Acceptable source formats are EColor64K and EColor16MU. Mask format must be EGray256.

Parameters

TInt aXLogical X coordinate of the position in the target the result should be drawn to.
TInt aYLogical Y coordinate of the position in the target the result should be drawn to.
TInt aLengthSource data - length in pixels.
TInt aSrcXX coordinate of the position of the first pixel in the source bitmap to use.
const TUint32 * aSrcPtrPointer to the start of the current scanline of the source bitmap.
TDisplayMode aSrcFormatPixel format of the source bitmap.
TInt aMaskXX coordinate of the position of the first pixel in the mask to use.
const TUint32 * aMaskPtrPointer to the start of the current scanline of the mask bitmap.
MAlphaBlend::TShadowing aShadowingIt says when the shadowing/fading has to be done - before or after the alpha blending transformation. Before: A shadow/fade copy of the source bitmap will be used. After: The result pixels will be shadowed/faded.

WriteMaskLineEx(TInt, TInt, TInt, TInt, const TUint32 *, TDisplayMode, TInt, const TUint32 *, TBool)

voidWriteMaskLineEx(TIntaX,
TIntaY,
TIntaLength,
TIntaSrcX,
const TUint32 *aSrcPtr,
TDisplayModeaSrcFormat,
TIntaMaskX,
const TUint32 *aMaskPtr,
TBoolaInvertMask
)[pure virtual]

Performs masked blitting. Acceptable source formats are EColor64K and EColor16MU. Mask format must be EGray2.

Parameters

TInt aXLogical X coordinate of the position in the target the result should be drawn to.
TInt aYLogical Y coordinate of the position in the target the result should be drawn to.
TInt aLengthSource data - length in pixels.
TInt aSrcXX coordinate of the position of the first pixel in the source bitmap to use.
const TUint32 * aSrcPtrPointer to the start of the current scanline of the source bitmap.
TDisplayMode aSrcFormatPixel format of the source bitmap.
TInt aMaskXX coordinate of the position of the first pixel in the mask to use.
const TUint32 * aMaskPtrPointer to the start of the current scanline of the mask bitmap.
TBool aInvertMaskSpecifies if the mask shuld be inverted.