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)

void WriteAlphaLineEx ( TInt aX,
TInt aY,
TInt aLength,
TInt aSrcX,
const TUint32 * aSrcPtr,
TDisplayMode aSrcFormat,
TInt aMaskX,
const TUint32 * aMaskPtr,
MAlphaBlend::TShadowing aShadowing
) [pure virtual]

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

Parameters

TInt aX Logical X coordinate of the position in the target the result should be drawn to.
TInt aY Logical Y coordinate of the position in the target the result should be drawn to.
TInt aLength Source data - length in pixels.
TInt aSrcX X coordinate of the position of the first pixel in the source bitmap to use.
const TUint32 * aSrcPtr Pointer to the start of the current scanline of the source bitmap.
TDisplayMode aSrcFormat Pixel format of the source bitmap.
TInt aMaskX X coordinate of the position of the first pixel in the mask to use.
const TUint32 * aMaskPtr Pointer to the start of the current scanline of the mask bitmap.
MAlphaBlend::TShadowing aShadowing It 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)

void WriteMaskLineEx ( TInt aX,
TInt aY,
TInt aLength,
TInt aSrcX,
const TUint32 * aSrcPtr,
TDisplayMode aSrcFormat,
TInt aMaskX,
const TUint32 * aMaskPtr,
TBool aInvertMask
) [pure virtual]

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

Parameters

TInt aX Logical X coordinate of the position in the target the result should be drawn to.
TInt aY Logical Y coordinate of the position in the target the result should be drawn to.
TInt aLength Source data - length in pixels.
TInt aSrcX X coordinate of the position of the first pixel in the source bitmap to use.
const TUint32 * aSrcPtr Pointer to the start of the current scanline of the source bitmap.
TDisplayMode aSrcFormat Pixel format of the source bitmap.
TInt aMaskX X coordinate of the position of the first pixel in the mask to use.
const TUint32 * aMaskPtr Pointer to the start of the current scanline of the mask bitmap.
TBool aInvertMask Specifies if the mask shuld be inverted.