#include <icl/imageconversionextensionintf.h>
| class MImageConvScaler : public MImageConvExtension |
| Public Member Functions | |
|---|---|
| pure virtual void | GetCapabilities(TScalerCaps &) |
| pure virtual void | SetScalingL(const TSize &, TImageConvScaler::TScalerQuality, TBool) |
| pure virtual void | SetScalingL(TInt, TImageConvScaler::TScalerQuality) |
| Inherited Functions | |
|---|---|
| MImageConvExtension::IncrementRef() | |
| MImageConvExtension::Release() | |
| MImageConvExtension::Uid()const | |
Scaling extension for Image Conversion Library
| void | GetCapabilities | ( | TScalerCaps & | aCaps | ) | const [pure virtual] |
Gets the scaling capabilities.
| Parameters | |
|---|---|
| aCaps | Returns scaling capabilities of the codec plugin. |
| void | SetScalingL | ( | const TSize & | aDesiredSize, |
| TImageConvScaler::TScalerQuality | aQuality, | |||
| TBool | aLockAspectRatio | |||
| ) | [pure virtual] | |||
| Parameters | |
|---|---|
| aDesiredSize | Proposed size of the scaled image. |
| aQuality | Desired quality of the image. Allows codec to lower quality targets to improve performance. |
| aLockAspectRatio | Set to ETrue if the aspect ratio of the original image is to be preserved. |
| Leave Codes | |
|---|---|
| KErrNotSupported | if an invalid size is passed. |
| KErrNotSupported | if aLockAspectRatio is EFalse and codec only supports preservation of aspect ratio. |
| void | SetScalingL | ( | TInt | aScalingCoeff, |
| TImageConvScaler::TScalerQuality | aScalingQuality | |||
| ) | [pure virtual] | |||
Define the scaling to be applied to the image according to the given coefficient at the requested quality.
| Parameters | |
|---|---|
| aScalingCoeff | Scale to apply to the source. 2 means twice the original size, -2 half the size. Do not confuse this with ReductionFactor where 2 indicates 1/2 size. |
| aScalingQuality | Desired quality of the image. Allows codec to lower quality targets to improve performance. |
| Leave Codes | |
|---|---|
| KErrNotSupported | if codec cannot perform the requested scale. |