#include <icl/overlaytransformextension.h>
class COverlayTransformExtension : public CImageTransformPluginExtension, public CImageTransformPluginExtension |
Public Member Functions | |
---|---|
IMPORT_C void | SetOverlayDataL(const TDesC8 &, const TUid &) |
IMPORT_C void | SetOverlayFileL(const TDesC &, const TUid &) |
IMPORT_C void | SetOverlayImageL(const CFbsBitmap &) |
IMPORT_C void | SetOverlayImageL(const CImageFrame &) |
IMPORT_C void | SetPosition(const TPoint &) |
IMPORT_C void | SetTransparencyLevelL(TUint) |
IMPORT_C void | SupportedOverlayInputFormatsL(RArray< TUid > &) |
IMPORT_C void | SupportedOverlayInputSubFormatsL(TUid, RArray< TUid > &) |
Protected Member Functions | |
---|---|
pure virtual void | DoSetOverlayDataL(const TDesC8 &, const TUid &) |
pure virtual void | DoSetOverlayFileL(const TDesC &, const TUid &) |
pure virtual void | DoSetOverlayImageL(const CFbsBitmap &) |
pure virtual void | DoSetOverlayImageL(const CImageFrame &) |
pure virtual void | DoSetPosition(const TPoint &) |
pure virtual void | DoSetTransparencyLevelL(TUint) |
pure virtual void | DoSupportedOverlayInputFormatsL(RArray< TUid > &) |
pure virtual void | DoSupportedOverlayInputSubFormatsL(TUid, RArray< TUid > &) |
Overlay/Replace Extension to the ImageTransform plugin
The class provides the methods to set the overlay/replace parameters and is intended to be implemented by the plugins supporting the blending of the images. The client can set the overlay image, the overlay position and the transparency of the overlay image. The plugin supporting this extension must use the opaque_data v2 format in RSS file and also the overlay flag must be set in the opaque_data. The client must retrieve this extension implementation from the plugin using its extension UID.
void | DoSetOverlayFileL | ( | const TDesC & | aFilename, |
const TUid & | aOverlayImageUid | |||
) | [protected, pure virtual] |
void | DoSetOverlayImageL | ( | const CFbsBitmap & | aBitmap | ) | [protected, pure virtual] |
void | DoSetOverlayImageL | ( | const CImageFrame & | aImageFrame | ) | [protected, pure virtual] |
void | DoSetPosition | ( | const TPoint & | aPosition | ) | [protected, pure virtual] |
void | DoSetTransparencyLevelL | ( | TUint | aLevel | ) | [protected, pure virtual] |
void | DoSupportedOverlayInputSubFormatsL | ( | TUid | aFormat, |
RArray< TUid > & | aSubFormats | |||
) | const [protected, pure virtual] |
Parameters | |
---|---|
aData | The descriptor containing overlay image |
aOverlayImageUid | The format of the overlay image |
Leave Codes | |
---|---|
KErrNotSupported | The plugin does not support this format of the the overlay image file |
Parameters | |
---|---|
aFilename | The overlay image filename |
aOverlayImageUid | The format of the overlay image |
Leave Codes | |
---|---|
KErrNotSupported | The plugin does not support this format of the the overlay image file |
IMPORT_C void | SetOverlayImageL | ( | const CFbsBitmap & | aBitmap | ) |
Parameters | |
---|---|
aBitmap | The bitmap containing overlay image |
Leave Codes | |
---|---|
KErrNotSupported | The plugin does not support this format of the the overlay image file |
IMPORT_C void | SetOverlayImageL | ( | const CImageFrame & | aImageFrame | ) |
Parameters | |
---|---|
aImageFrame | The image frame containing the overlay image |
Leave Codes | |
---|---|
KErrNotSupported | The plugin does not support this format of the the overlay image file |
IMPORT_C void | SetPosition | ( | const TPoint & | aPosition | ) |
This function sets the position, where overlay image is to be placed
Parameters | |
---|---|
aPosition | The position for overlay image |
IMPORT_C void | SetTransparencyLevelL | ( | TUint | aLevel | ) |
Parameters | |
---|---|
aLevel | The transparency level |
Leave Codes | |
---|---|
KErrNotSupported | The plugin does not support this. |
Parameters | |
---|---|
aFormat | The image format for which supported sub-format list is required |
aSubFormats | On return, contains the supported overlay image sub-formats |
Leave Codes | |
---|---|
The | function leaves with one of the system wide error codes, if the operation fails |