class CDrawBitmap : public CFbsDrawDevice |
Private Member Functions | |
---|---|
void | DoCopyOldSettings ( CFbsDrawDevice *) |
TInt | DoFastBlendBitmap (const TPoint &, const TRect &, const TUint8 *, TInt , TDisplayMode , const TSize &) |
TBool | FastBlendMaskSupported ( TDisplayMode , TInt ) |
TBool | FastBlendSupported ( TDisplayMode , CGraphicsContext::TDrawMode , TInt , TInt ) |
void | GetBlendPosAndRect ( TRect &, const TRect &, const TSize &, const TPoint &) |
void | GetBlendPosAndRect ( TRect &, TRect &, const TRect &, const TRect &, const TSize &) |
void | InitLogicalCoordinates () |
TInt | Origin ( TInt , TInt ) |
TInt | OtherSide ( TInt , TInt , TInt ) |
void | PreWriteRgb ( TInt &, TInt &, TInt &, TInt &, CGraphicsContext::TDrawMode ) |
void | SetDefaults () |
void | WriteRgb ( TInt &, TInt &, TInt &, TInt &, TRgb , CGraphicsContext::TDrawMode ) |
Inherited Enumerations | |
---|---|
CFbsDrawDevice:TOrientation | |
CFbsDrawDevice:TShadowMode |
void | ANDPixels | ( | TPixelType * | aPixelPtr, |
TPixelType | aValue, | |||
const TPixelType * | aPixelPtrRowLimit, | |||
const TPixelType * | aBitsStart, | |||
const TPixelType * | aBitsEnd | |||
) | const [protected, inline] |
TPixelType * aPixelPtr | |
TPixelType aValue | |
const TPixelType * aPixelPtrRowLimit | |
const TPixelType * aBitsStart | |
const TPixelType * aBitsEnd |
TInt | BitsPerPixel | ( | TDisplayMode | aDispMode | ) | [protected, static] |
TDisplayMode aDispMode |
void | BlendLine | ( | TInt | aX, |
TInt | aY, | |||
TInt | aLength, | |||
TUint32 * | aBuffer | |||
) | [protected, virtual] |
void | BlendRgbMulti | ( | TInt | aX, |
TInt | aY, | |||
TInt | aWidth, | |||
TInt | aLength, | |||
TRgb | aColor | |||
) | [protected, virtual] |
TBool | CanBeScaled | ( | ) | const [protected] |
Notifies the caller whether the drawing device can be scaled or not.
TBool | CanOriginBeMoved | ( | ) | const [protected] |
Notifies the caller whether the drawing device origin can be moved from (0, 0) point or not.
TAny * | CopyOffset | ( | TAny * | aDestination, |
const TAny * | aSource, | |||
TInt | aWordsToCopy, | |||
TInt | aSourceBitOffset | |||
) | [protected, static] |
void | CopyOldSettings | ( | CFbsDrawDevice * | aDrawDevice | ) | [protected] |
CFbsDrawDevice * aDrawDevice |
TPoint | DeOrientate | ( | const TPoint & | aPoint | ) | const [protected] |
const TPoint & aPoint |
TRect | DeOrientate | ( | const TRect & | aRect | ) | const [protected] |
const TRect & aRect |
TDisplayMode | DisplayMode | ( | ) | const [inline, virtual] |
Return the display mode of the device.
void | DoCopyOldSettings | ( | CFbsDrawDevice * | aDrawDevice | ) | [private] |
CFbsDrawDevice * aDrawDevice |
TInt | DoFastBlendBitmap | ( | const TPoint & | aDest, |
const TRect & | aSrcRect, | |||
const TUint8 * | aSrcBase, | |||
TInt | aSrcLinePitch, | |||
TDisplayMode | aSrcDisplayMode, | |||
const TSize & | aSrcSize | |||
) | [private] |
void | FadeRgb | ( | TInt & | aRed, |
TInt & | aGreen, | |||
TInt & | aBlue | |||
) | [protected] |
The overloaded function for FadeRgb(TRgb) which works directly with the Red, Green and Blue colour components to increase the performance.
TInt | FastBlendBitmap | ( | const TPoint & | aDest, |
CFbsDrawDevice * | aSrcDrawDevice, | |||
const TRect & | aSrcRect, | |||
CGraphicsContext::TDrawMode | aDrawMode, | |||
TInt | aShadowMode | |||
) | [virtual] |
CDrawBitmap::BlendBitmap() implementation.
const TPoint & aDest | |
CFbsDrawDevice * aSrcDrawDevice | |
const TRect & aSrcRect | |
CGraphicsContext::TDrawMode aDrawMode | |
TInt aShadowMode |
TInt | FastBlendBitmap | ( | const TPoint & | aDest, |
const TUint32 * | aSrcBase, | |||
TInt | aSrcStride, | |||
const TSize & | aSrcSize, | |||
const TRect & | aSrcRect, | |||
TDisplayMode | aDisplayMode, | |||
CGraphicsContext::TDrawMode | aDrawMode, | |||
TInt | aShadowMode | |||
) | [virtual] |
const TPoint & aDest | |
const TUint32 * aSrcBase | |
TInt aSrcStride | |
const TSize & aSrcSize | |
const TRect & aSrcRect | |
TDisplayMode aDisplayMode | |
CGraphicsContext::TDrawMode aDrawMode | |
TInt aShadowMode |
TInt | FastBlendBitmapMasked | ( | const TPoint & | aDest, |
const TUint32 * | aSrcBase, | |||
TInt | aSrcStride, | |||
const TSize & | aSrcSize, | |||
const TRect & | aSrcRect, | |||
TDisplayMode | aSrcDisplayMode, | |||
const TUint32 * | aMaskBase, | |||
TInt | aMaskStride, | |||
TDisplayMode | aMaskDisplayMode, | |||
const TSize & | aMaskSize, | |||
const TPoint & | aMaskSrcPos, | |||
TBool | aInvertMask, | |||
CGraphicsContext::TDrawMode | aDrawMode, | |||
TInt | aShadowMode | |||
) | [virtual] |
const TPoint & aDest | |
const TUint32 * aSrcBase | |
TInt aSrcStride | |
const TSize & aSrcSize | |
const TRect & aSrcRect | |
TDisplayMode aSrcDisplayMode | |
const TUint32 * aMaskBase | |
TInt aMaskStride | |
TDisplayMode aMaskDisplayMode | |
const TSize & aMaskSize | |
const TPoint & aMaskSrcPos | |
TBool aInvertMask | |
CGraphicsContext::TDrawMode aDrawMode | |
TInt aShadowMode |
TInt | FastBlendBitmapMaskedScaled | ( | const TRect & | aClipRect, |
const TRect & | aDest, | |||
const TRect & | aSrcRect, | |||
const TUint32 * | aSrcBase, | |||
TInt | aSrcLinePitch, | |||
TDisplayMode | aSrcDisplayMode, | |||
const TSize & | aSrcSize, | |||
const TUint32 * | aMaskBase, | |||
TInt | aMaskStride, | |||
TDisplayMode | aMaskDisplayMode, | |||
const TSize & | aMaskSize, | |||
TBool | aInvertMask, | |||
CGraphicsContext::TDrawMode | aDrawMode, | |||
TInt | aShadowMode | |||
) | [virtual] |
const TRect & aClipRect | |
const TRect & aDest | |
const TRect & aSrcRect | |
const TUint32 * aSrcBase | |
TInt aSrcLinePitch | |
TDisplayMode aSrcDisplayMode | |
const TSize & aSrcSize | |
const TUint32 * aMaskBase | |
TInt aMaskStride | |
TDisplayMode aMaskDisplayMode | |
const TSize & aMaskSize | |
TBool aInvertMask | |
CGraphicsContext::TDrawMode aDrawMode | |
TInt aShadowMode |
TInt | FastBlendBitmapScaled | ( | const TRect & | aClipRect, |
const TRect & | aDest, | |||
const TRect & | aSrcRect, | |||
const TUint32 * | aSrcBase, | |||
TInt | aSrcLinePitch, | |||
TDisplayMode | aSrcDisplayMode, | |||
const TSize & | aSrcSize, | |||
CGraphicsContext::TDrawMode | aDrawMode, | |||
TInt | aShadowMode | |||
) | [virtual] |
const TRect & aClipRect | |
const TRect & aDest | |
const TRect & aSrcRect | |
const TUint32 * aSrcBase | |
TInt aSrcLinePitch | |
TDisplayMode aSrcDisplayMode | |
const TSize & aSrcSize | |
CGraphicsContext::TDrawMode aDrawMode | |
TInt aShadowMode |
TBool | FastBlendMaskSupported | ( | TDisplayMode | aMaskDisplayMode, |
TInt | aMaskStride | |||
) | [private] |
TDisplayMode aMaskDisplayMode | |
TInt aMaskStride |
TBool | FastBlendSupported | ( | TDisplayMode | aSrcDisplayMode, |
CGraphicsContext::TDrawMode | aDrawMode, | |||
TInt | aShadowMode, | |||
TInt | aSrcLinePitch | |||
) | [private] |
TDisplayMode aSrcDisplayMode | |
CGraphicsContext::TDrawMode aDrawMode | |
TInt aShadowMode | |
TInt aSrcLinePitch |
void | Get | ( | TInt & | aFactorX, |
TInt & | aFactorY, | |||
TInt & | aDivisorX, | |||
TInt & | aDivisorY | |||
) | [virtual] |
Implementation for MScalingSettings::Get() . Retrieves X-axis and Y-axis scaling factors.
TInt & aFactorX | Upon return contains X-axis scaling factor. |
TInt & aFactorY | Upon return contains Y-axis scaling factor. |
TInt & aDivisorX | Upon return contains the decimal fraction of X-axis scaling factor. |
TInt & aDivisorY | Upon return contains the decimal fraction of Y-axis scaling factor. |
void | Get | ( | TPoint & | aOrigin | ) | [virtual] |
Implementation for MDrawDeviceOrigin::Get() . Retrieves origin point.
TPoint & aOrigin | Upon return contains scaling origin point. |
void | GetBlendPosAndRect | ( | TRect & | aSrcRect, |
const TRect & | aSrcRectIn, | |||
const TSize & | aSrcSize, | |||
const TPoint & | aDestOffset | |||
) | [private] |
void | GetBlendPosAndRect | ( | TRect & | aDstRect, |
TRect & | aSrcRect, | |||
const TRect & | aDestRectIn, | |||
const TRect & | aSrcRectIn, | |||
const TSize & | aSrcSize | |||
) | [private] |
void | GetDrawRect | ( | TRect & | aDrawRect | ) | const [virtual] |
Implementation for CFbsDrawDevice::GetDrawRect() . Gets logical coordinates of the drawing rectangle. If the device is not scaled and with zero origin, logocal coordinates of the drawing rectangle are the same as its physical coordinates. If the device is rotated, drawing rectangle width and height are swapped. Always prefer GetDrawRect() to SizeInPixels() call. SizeInPixels() will return drawing rectangle width and height. But if the device is scaled or with nonzero origin, GetDrawRect() will take into account and the top-left corner of the drawing rectangle too, which may not be [0, 0].
TRect & aDrawRect |
TInt | GetInterface | ( | TInt | aInterfaceId, |
TAny *& | aInterface | |||
) | [virtual] |
Implementation for CFbsDrawDevice::GetInterface() . Retrieves a pointer to a specified interface of CFbsDrawDevice implementation.
TInt | HorzTwipsPerThousandPixels | ( | ) | const [inline, virtual] |
Allows the caller to calculate the physical size of a bitmap on the current hardware by calculating how many twips a 1000-pixel wide bitmap would be. Only applicable to screen-based devices; bitmap devices return 0.
void | InvertBuffer | ( | TInt | aLength, |
TUint32 * | aBuffer | |||
) | [protected, pure virtual] |
TBool | IsScalingOff | ( | ) | [virtual] |
Implementation for MScalingSettings::IsScalingOff() . Notifies the caller whether the drawing device is scaled or not.
TInt | LongWidth | ( | ) | const [virtual] |
Scanline width in pixels. The return value can be greater or equal than iSize.iWidth, because the scan line memory is allocated in 32-bit words and can be rounded up, if the display mode allows more than 1 pixel to be stored in a single byte.
void | MapBufferToUserDisplayMode | ( | TInt | , |
TUint32 * | ||||
) | [protected, inline, virtual] |
void | MapColorToUserDisplayMode | ( | TInt & | red, |
TInt & | green, | |||
TInt & | blue | |||
) | [protected] |
Convert a RGB pixel into the color associated to the user display mode.
void | MapColorToUserDisplayMode | ( | TRgb & | ) | [protected, inline, virtual] |
TRgb & |
void | MapColors | ( | const TRect & | aRect, |
const TRgb * | aColors, | |||
TInt | aNumPairs, | |||
TBool | aMapForwards | |||
) | [virtual] |
const TRect & aRect | Area of the device/bitmap to be mapped in logical coordinates |
const TRgb * aColors | Colour map. This should be provided as a set of TRgb pairs, one to be matched and the other to provide a replacement. |
TInt aNumPairs | Number of pairs of colours in aColors. |
TBool aMapForwards | If ETrue, match the first colour of a pair and replace by the second, otherwise match the second and replace by the first. |
void | ORPixels | ( | TPixelType * | aPixelPtr, |
TPixelType | aValue, | |||
const TPixelType * | aPixelPtrRowLimit, | |||
const TPixelType * | aBitsStart, | |||
const TPixelType * | aBitsEnd | |||
) | const [protected, inline] |
TPixelType * aPixelPtr | |
TPixelType aValue | |
const TPixelType * aPixelPtrRowLimit | |
const TPixelType * aBitsStart | |
const TPixelType * aBitsEnd |
CFbsDrawDevice::TOrientation | Orientation | ( | ) | [virtual] |
CDrawBitmap::Orientation() implementation. MDrawDeviceOrientation::Orientation()
void | OrientationsAvailable | ( | TBool | aOrientation | ) | [virtual] |
Reports on which orientations are available on the device/bitmap.
TBool aOrientation | Array to receive the capability (use CFbsDrawDevice::TOrientation as an index) |
TInt | OtherSide | ( | TInt | aPhysOrg, |
TInt | aPhysSize, | |||
TInt | aScale | |||
) | const [private, inline] |
TUint32 | PasteInt | ( | TUint32 | aFirst, |
TUint32 | aSecond, | |||
TInt | aOffset | |||
) | const [protected] |
void | PreWriteRgb | ( | TInt & | aWidth, |
TInt & | aHeight, | |||
TInt & | aX, | |||
TInt & | aY, | |||
CGraphicsContext::TDrawMode | aDrawMode | |||
) | [private] |
TInt & aWidth | |
TInt & aHeight | |
TInt & aX | |
TInt & aY | |
CGraphicsContext::TDrawMode aDrawMode |
void | ReadLine | ( | TInt | aX, |
TInt | aY, | |||
TInt | aLength, | |||
TAny * | aBuffer, | |||
TDisplayMode | aDispMode | |||
) | const [virtual] |
TInt aX | X coordinate of the pixel to start reading from (logical coordinates) |
TInt aY | Y coordinate of the pixel to start reading from(logical coordinates) |
TInt aLength | Number of pixels to read |
TAny * aBuffer | Buffer to receive the pixel data (must be large enough) |
TDisplayMode aDispMode | Format to use for writing pixels into the buffer. |
void | ReadLine | ( | TInt | aX, |
TInt | aY, | |||
TInt | aLength, | |||
TAny * | aBuffer | |||
) | const [protected, pure virtual] |
void | ReadLineCommon | ( | TUint32 * | aPixelPtr, |
TUint32 * | aBufferPtr, | |||
TInt | aWordsCnt, | |||
TInt | aRestPixels, | |||
TInt | aBytesCnt, | |||
TInt | aStartDiffBits | |||
) | [protected, static] |
Common code to read a line of pixels where there are >1 pixels per byte. The source words must be shifted to fit the target buffer.
TUint32 * aPixelPtr | Source location to start copying from (word aligned, last word is safe) |
TUint32 * aBufferPtr | Target location to write to (word aligned - may or may not own all last word) |
TInt aWordsCnt | Number of source words that can be safely copied |
TInt aRestPixels | Number of pixels that must be read from the next word for the final byte copy |
TInt aBytesCnt | Number of bytes to write from final input word |
TInt aStartDiffBits | Number of bits shifted between input and output words. |
TRgb | ReadPixel | ( | TInt | aX, |
TInt | aY | |||
) | const [virtual] |
TUint32 * | ScanLineBuffer | ( | ) | const [virtual] |
Returns a pointer to a buffer large enough to read a line of pixels of maximum length. Ownership of the buffer is retained by the bitmap or device object. Repeated calls to this function will return the same buffer.
TInt | ScanLineBytes | ( | ) | const [virtual] |
Scanline width in bytes. The return value may be greater than the actual number of bytes needed to store the pixels, since scan line memory is allocated in 32-bit words and can be rounded up.
TDisplayMode | ScanLineDisplayMode | ( | ) | const [inline, virtual] |
Return the display mode to be used when passing pixel data to the device using the scanline buffer. CFbsDrawDevice::DisplayMode
TInt | Set | ( | TInt | aFactorX, |
TInt | aFactorY, | |||
TInt | aDivisorX, | |||
TInt | aDivisorY | |||
) | [virtual] |
Implementation for MScalingSettings::Set() . Sets scaling factor by which the drawing device should scale the drawing images. If you want to un-scale the device, call Set() with factorX = 1, factorY = 1, divisorX = 1, divisorY = 1.
TInt | Set | ( | const TPoint & | aOrigin | ) | [virtual] |
Implementation for MDrawDeviceOrigin::Set() . Sets drawing device origin. If you want to the default origin, call Set() with Origin (0,0).
const TPoint & aOrigin | Specifies physical coordinates of the new scaling origin of the drawing device. The drawing device maps the logical point [0,0] to the "aOrigin" physical point . |
void | SetBits | ( | TAny * | ) | [virtual] |
Set the internal data buffer to point to the supplied buffer. No checks are made that the buffer is appropriate for the purpose. Ownership is not taken.
TAny * |
void | SetDitherOrigin | ( | const TPoint & | ) | [virtual] |
Set the origin point of the dither matrix (if appropriate)
const TPoint & |
void | SetFadingParameters | ( | TUint8 | , |
TUint8 | ||||
) | [virtual] |
Set the current fading parameters
TBool | SetOrientation | ( | TOrientation | aOrientation | ) | [virtual] |
Set the orientation of the device
TOrientation aOrientation | Orientation to set |
void | SetPixels | ( | TPixelType * | aPixelPtr, |
TPixelType | aValue, | |||
const TPixelType * | aPixelPtrRowLimit, | |||
const TPixelType * | aBitsStart, | |||
const TPixelType * | aBitsEnd | |||
) | const [protected, inline] |
TPixelType * aPixelPtr | |
TPixelType aValue | |
const TPixelType * aPixelPtrRowLimit | |
const TPixelType * aBitsStart | |
const TPixelType * aBitsEnd |
void | SetShadowMode | ( | TShadowMode | aShadowMode | ) | [inline, virtual] |
TShadowMode aShadowMode |
void | SetSize | ( | const TSize & | aSize | ) | [protected, virtual] |
const TSize & aSize |
void | SetUserDisplayMode | ( | TDisplayMode | ) | [inline, virtual] |
Sets the user display mode - used for certain colour mapping functions
TDisplayMode |
TSize | SizeInPixels | ( | ) | const [virtual] |
The method returns screen size in pixels. The orientation is taken into account. Always prefer GetDrawRect() to SizeInPixels() call. GetDrawRect() will take into account possible non-[0,0] top-left corner of the drawing rectangle if the device is scaled.
void | SwapWidthAndHeight | ( | ) | [virtual] |
The method swaps bitmap device's width and height. For example: if the size is (40, 20), the swapped size will be (20, 40). The device's content is not preserved. The method leaves CDrawBitmap object in a consistent state - scaling settings will be set with their default values (the scaling is switched off), iDitherOrigin will be set to (0,0), iOrigin to (0,0).
Note: This method is used internally by BITGDI component. Do not call it!
TInt | VertTwipsPerThousandPixels | ( | ) | const [inline, virtual] |
Allows the caller to calculate the physical size of a bitmap on the current hardware by calculating how many twips a 1000-pixel high bitmap would be. Only applicable to screen-based devices; bitmap devices return 0.
void | WriteBinary | ( | TInt | aX, |
TInt | aY, | |||
TUint32 * | aBuffer, | |||
TInt | aLength, | |||
TInt | aHeight, | |||
TRgb | aColor, | |||
CGraphicsContext::TDrawMode | aDrawMode | |||
) | [virtual] |
TInt aX | Left edge of the rectangle (logical coordinates) |
TInt aY | Top edge of the rectangle (logical coordinates) |
TUint32 * aBuffer | Array of bitmasks - one per line |
TInt aLength | Width of the rectangle (must be >0 and <= 32) |
TInt aHeight | Height of the rectangle (== number of entries in aBuffer) |
TRgb aColor | Colour to combine with the existing pixel data |
CGraphicsContext::TDrawMode aDrawMode | Combination function for source and destination pixels. |
void | WriteBinary | ( | TInt | aX, |
TInt | aY, | |||
TUint32 * | aBuffer, | |||
TInt | aLength, | |||
TInt | aHeight, | |||
TRgb | aColor | |||
) | [protected, pure virtual] |
void | WriteBinaryLine | ( | TInt | aX, |
TInt | aY, | |||
TUint32 * | aBuffer, | |||
TInt | aLength, | |||
TRgb | aColor, | |||
CGraphicsContext::TDrawMode | aDrawMode | |||
) | [virtual] |
TInt aX | Starting X coordinate (logical coordinates) |
TInt aY | Starting Y coordinate (logical coordinates) |
TUint32 * aBuffer | Array of bitmasks |
TInt aLength | Number of pixels |
TRgb aColor | Colour to combine with existing pixels |
CGraphicsContext::TDrawMode aDrawMode | Combination function for source and destination pixels. |
void | WriteBinaryLineVertical | ( | TInt | aX, |
TInt | aY, | |||
TUint32 * | aBuffer, | |||
TInt | aHeight, | |||
TRgb | aColor, | |||
CGraphicsContext::TDrawMode | aDrawMode, | |||
TBool | aUp | |||
) | [virtual] |
Similar to WriteBinaryLine, but writes a vertical, rather than a horizontal line. LIne is drawn upward (decreasing Y) if aUp == ETrue. WriteBinaryLine
void | WriteBinaryLineVertical | ( | TInt | aX, |
TInt | aY, | |||
TUint32 * | aBuffer, | |||
TInt | aLength, | |||
TRgb | aColor, | |||
TBool | aUp | |||
) | [protected, pure virtual] |
void | WriteBinaryOp | ( | TInt | aX, |
TInt | aY, | |||
TUint32 * | aBuffer, | |||
TInt | aLength, | |||
TInt | aHeight, | |||
TRgb | aColor, | |||
CGraphicsContext::TDrawMode | aDrawMode | |||
) | [protected, pure virtual] |
void | WriteLine | ( | TInt | aX, |
TInt | aY, | |||
TInt | aLength, | |||
TUint32 * | aBuffer, | |||
CGraphicsContext::TDrawMode | aDrawMode | |||
) | [virtual] |
TInt aX | Logical X coordinate of the start of the line. |
TInt aY | Logical Y coordinate of the line. |
TInt aLength | Source data - length in pixels. |
TUint32 * aBuffer | Source data. Must be in the format returned by ScanLineDisplayMode(). |
CGraphicsContext::TDrawMode aDrawMode | Combination function for source and destination pixels. |
void | WriteLine | ( | TInt | aX, |
TInt | aY, | |||
TInt | aLength, | |||
TUint32 * | aBuffer | |||
) | [protected, pure virtual] |
void | WriteLineAND | ( | TInt | aX, |
TInt | aY, | |||
TInt | aLength, | |||
TUint32 * | aBuffer | |||
) | [protected, pure virtual] |
void | WriteLineOR | ( | TInt | aX, |
TInt | aY, | |||
TInt | aLength, | |||
TUint32 * | aBuffer | |||
) | [protected, pure virtual] |
void | WriteLineXOR | ( | TInt | aX, |
TInt | aY, | |||
TInt | aLength, | |||
TUint32 * | aBuffer | |||
) | [protected, pure virtual] |
void | WriteRgb | ( | TInt | aX, |
TInt | aY, | |||
TRgb | aColor, | |||
CGraphicsContext::TDrawMode | aDrawMode | |||
) | [virtual] |
TInt aX | X coordinate (logical coordinates) |
TInt aY | Y coordinate (logical coordinates) |
TRgb aColor | Colour to write |
CGraphicsContext::TDrawMode aDrawMode | Combination function for source and destination pixels. |
void | WriteRgb | ( | TInt | aX, |
TInt | aY, | |||
TRgb | aColor | |||
) | [protected, pure virtual] |
void | WriteRgb | ( | TInt & | aWidth, |
TInt & | aHeight, | |||
TInt & | aX, | |||
TInt & | aY, | |||
TRgb | aColor, | |||
CGraphicsContext::TDrawMode | aDrawMode | |||
) | [private] |
void | WriteRgbAlphaLine | ( | TInt | aX, |
TInt | aY, | |||
TInt | aLength, | |||
TUint8 * | aRgbBuffer, | |||
TUint8 * | aMaskBuffer, | |||
CGraphicsContext::TDrawMode | aDrawMode | |||
) | [virtual] |
C1 - a pixel from aRgbBuffer;
C2 - a pixel from the sceen;
A - a pixel from aMaskBuffer; The content of source and mask buffers is preserved. The calculated alpha blended pixel is written to the destination - the screen or a bitmap.
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. |
TUint8 * aRgbBuffer | A pointer to a line of the source bitmap data. |
TUint8 * aMaskBuffer | Buffer containing the data which should be used as an alpha blending factor. |
CGraphicsContext::TDrawMode aDrawMode |
void | WriteRgbAlphaLine | ( | TInt | aX, |
TInt | aY, | |||
TInt | aLength, | |||
const TUint8 * | aRgbBuffer1, | |||
const TUint8 * | aBuffer2, | |||
const TUint8 * | aMaskBuffer, | |||
CGraphicsContext::TDrawMode | aDrawMode | |||
) | [virtual] |
C1 - a pixel from aRgbBuffer1;
C2 - a pixel from aBuffer2;
A - a pixel from aMaskBuffer; The content of source and mask buffers is preserved. The calculated alpha blended pixel is written to the destination - the screen or a bitmap.
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. |
const TUint8 * aRgbBuffer1 | A pointer to a line of the source bitmap data 1. |
const TUint8 * aBuffer2 | A pointer to a line of the source bitmap data 2. Source bitmap data 2 should be mapped to current display mode before the method call. |
const TUint8 * aMaskBuffer | Buffer containing the data which should be used as an alpha blending factor. |
CGraphicsContext::TDrawMode aDrawMode | Drawing mode |
void | WriteRgbMulti | ( | TInt | aX, |
TInt | aY, | |||
TInt | aLength, | |||
TInt | aHeight, | |||
TRgb | aColor, | |||
CGraphicsContext::TDrawMode | aDrawMode | |||
) | [virtual] |
TInt aX | X coordinate (logical coordinates) |
TInt aY | Y coordinate (logical coordinates) |
TInt aLength | Width of the rectangle (logical coordinates) |
TInt aHeight | Height of the rectangle (logical coordinates) |
TRgb aColor | Colour to write |
CGraphicsContext::TDrawMode aDrawMode | Combination function for source and destination pixels. |
void | WriteRgbMulti | ( | TInt | aX, |
TInt | aY, | |||
TInt | aWidth, | |||
TInt | aLength, | |||
TRgb | aColor | |||
) | [protected, pure virtual] |
void | WriteRgbMultiAND | ( | TInt | aX, |
TInt | aY, | |||
TInt | aWidth, | |||
TInt | aLength, | |||
TRgb | aColor | |||
) | [protected, pure virtual] |
void | WriteRgbMultiOR | ( | TInt | aX, |
TInt | aY, | |||
TInt | aWidth, | |||
TInt | aLength, | |||
TRgb | aColor | |||
) | [protected, pure virtual] |
void | WriteRgbMultiXOR | ( | TInt | aX, |
TInt | aY, | |||
TInt | aWidth, | |||
TInt | aLength, | |||
TRgb | aColor | |||
) | [protected, pure virtual] |
void | XORPixels | ( | TPixelType * | aPixelPtr, |
TPixelType | aValue, | |||
const TPixelType * | aPixelPtrRowLimit, | |||
const TPixelType * | aBitsStart, | |||
const TPixelType * | aBitsEnd | |||
) | const [protected, inline] |
TPixelType * aPixelPtr | |
TPixelType aValue | |
const TPixelType * aPixelPtrRowLimit | |
const TPixelType * aBitsStart | |
const TPixelType * aBitsEnd |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.