class CImageProcessor : public CBase |
Interface to image processing classes used by CImageDecoder plugins. This is not a application client API.
Public Member Functions | |
---|---|
TBool | FlushPixels() |
void | PrepareL(CFbsBitmap &, const TRect &) |
void | PrepareL(CFbsBitmap &, const TRect &, const TSize &) |
void | SetLineRepeat(TInt) |
TBool | SetMonoPixel(TInt) |
TBool | SetMonoPixelBlock(TUint32 *) |
TBool | SetMonoPixelRun(TInt, TInt) |
TBool | SetMonoPixels(TUint32 *, TInt) |
TBool | SetPixel(TRgb) |
TBool | SetPixelBlock(TRgb *) |
void | SetPixelPadding(TInt) |
TBool | SetPixelRun(TRgb, TInt) |
TBool | SetPixels(TRgb *, TInt) |
TBool | SetPos(const TPoint &) |
void | SetYPosIncrement(TInt) |
Private Member Functions | |
---|---|
IMPORT_C void | ReservedVirtual1() |
IMPORT_C void | ReservedVirtual2() |
IMPORT_C void | ReservedVirtual3() |
IMPORT_C void | ReservedVirtual4() |
TBool | FlushPixels | ( | ) | [pure virtual] |
Commits the changes made to the current bitmap by flushing the buffer.
This is a virtual function that each derived class must implement.
void | PrepareL | ( | CFbsBitmap & | aBitmap, |
const TRect & | aImageRect | |||
) | [pure virtual] |
Initialises internal data structures prior to conversion.
This is a virtual function that each derived class must implement.
CFbsBitmap & aBitmap | A reference to a fully constucted bitmap with the required display mode and size. |
const TRect & aImageRect | The region of the image to convert. |
void | PrepareL | ( | CFbsBitmap & | aBitmap, |
const TRect & | aImageRect, | |||
const TSize & | aRgbBlockSize | |||
) | [pure virtual] |
Initialises internal data structures prior to the manipulation of the specified pixel block.
This overloaded version allows specification of a block size for those formats which support blocked pixel data eg. JPEG
This is a virtual function that each derived class must implement.
CFbsBitmap & aBitmap | A reference to a fully constucted bitmap with the required display mode and size. |
const TRect & aImageRect | The region of the image to convert. |
const TSize & aRgbBlockSize | The size of the block to use. |
IMPORT_C void | ReservedVirtual1 | ( | ) | [private, virtual] |
Intended for future proofing - will panic if called
IMPORT_C void | ReservedVirtual2 | ( | ) | [private, virtual] |
Intended for future proofing - will panic if called
IMPORT_C void | ReservedVirtual3 | ( | ) | [private, virtual] |
Intended for future proofing - will panic if called
IMPORT_C void | ReservedVirtual4 | ( | ) | [private, virtual] |
Intended for future proofing - will panic if called
void | SetLineRepeat | ( | TInt | aLineRepeat | ) | [pure virtual] |
Sets the number times the current line should be repeated. The lines are repeated in the same direction as set by SetYPosIncrement(). This is used to fill blank lines when rendering interlaced images. eg GIF.
TInt aLineRepeat | The number of times the current line should be repeated |
TBool | SetMonoPixel | ( | TInt | aGray256 | ) | [pure virtual] |
Sets the pixel at the current position to aGray256.
This is a virtual function that each derived class must implement.
TInt aGray256 | The greyscale value to set the current pixel to. |
TBool | SetMonoPixelBlock | ( | TUint32 * | aGray256Buffer | ) | [pure virtual] |
Sets a specified number of pixels to the specified greyscale value.
For image types which support blocking of pixels eg JPEG, the current pixel block is set using the data supplied in aGray256Buffer.
This is a virtual function that each derived class must implement.
TUint32 * aGray256Buffer | A pointer to a buffer representing a block of pixel color values. |
TBool | SetMonoPixelRun | ( | TInt | aGray256, |
TInt | aCount | |||
) | [pure virtual] |
Sets the number of pixels specified by aCount to the value given by aGray256, starting at the current position.
This is a virtual function that each derived class must implement.
TBool | SetMonoPixels | ( | TUint32 * | aGray256Buffer, |
TInt | aBufferLength | |||
) | [pure virtual] |
Updates the bitmap with greyscale information from the array of greyscale values.
The array of values supplied by aGray256Buffer, whose length is specified in aBufferLength, is used to update successive pixels with the greyscales values.
This is a virtual function that each derived class must implement.
TBool | SetPixel | ( | TRgb | aColor | ) | [pure virtual] |
Sets the pixel at the current position to aColor.
This is a virtual function that each derived class must implement.
TRgb aColor | The RGB value to set the current pixel to. |
TBool | SetPixelBlock | ( | TRgb * | aColorBuffer | ) | [pure virtual] |
Sets the current pixel block using the data supplied in aColorBuffer.
Note: For use with image types that support blocking of pixels eg JPEG.
This is a virtual function that each derived class must implement.
TRgb * aColorBuffer | A pointer to a buffer representing a block of pixel color values. |
void | SetPixelPadding | ( | TInt | aNumberOfPixels | ) | [pure virtual] |
Sets the pixel padding to the value specified by aNumberOfPixels.
This is a virtual function that each derived class must implement.
TInt aNumberOfPixels | The number of pixels to use for padding. |
TBool | SetPixelRun | ( | TRgb | aColor, |
TInt | aCount | |||
) | [pure virtual] |
Sets aCount number of pixels to the value given by aColor, starting at the current position.
This is a virtual function that each derived class must implement.
TBool | SetPixels | ( | TRgb * | aColorBuffer, |
TInt | aBufferLength | |||
) | [pure virtual] |
Updates the bitmap with colour information from the array of colour values.
Uses the array of colour values supplied by aColorBuffer, whose length is specified by aBufferLength, to update successive pixels with values in the buffer, starting at the current position.
This is a virtual function that each derived class must implement.
TBool | SetPos | ( | const TPoint & | aPosition | ) | [pure virtual] |
Sets the current position in the bitmap to aPosition.
This is a virtual function that each derived class must implement.
const TPoint & aPosition | A reference to TPoint object defining the position to move to. |
void | SetYPosIncrement | ( | TInt | aYInc | ) | [pure virtual] |
Sets the number of pixels by which to increment the current position in the Y-axis. This is used when rendering images supporting interlacing. eg GIF
This is a virtual function that each derived class must implement.
TInt aYInc | The number of pixels. |
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.