MImageConvScaler Class Reference
class MImageConvScaler : public MImageConvExtension |
Scaling extension for Image Conversion Library
Member Functions Documentation
GetCapabilities(TScalerCaps &)
void | GetCapabilities | ( | TScalerCaps & | aCaps | ) | const [pure virtual] |
Gets the scaling capabilities.
Parameters
TScalerCaps & aCaps | Returns scaling capabilities of the codec plugin. |
SetScalingL(const TSize &, TImageConvScaler::TScalerQuality, TBool)
Request scaling to the desired size using the quality specified and specifying if the aspect ratio is to be preserved.
- leave
- KErrNotSupported if an invalid size is passed.
- leave
- KErrNotSupported if aLockAspectRatio is EFalse and codec only supports preservation of aspect ratio.
Parameters
const TSize & aDesiredSize | Proposed size of the scaled image. |
TImageConvScaler::TScalerQuality aQuality | Desired quality of the image. Allows codec to lower quality targets to improve performance. |
TBool aLockAspectRatio | Set to ETrue if the aspect ratio of the original image is to be preserved. |
SetScalingL(TInt, TImageConvScaler::TScalerQuality)
Define the scaling to be applied to the image according to the given coefficient at the requested quality.
-
leave
- KErrNotSupported if codec cannot perform the requested scale.
Parameters
TInt 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. |
TImageConvScaler::TScalerQuality aScalingQuality | Desired quality of the image. Allows codec to lower quality targets to improve performance. |
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.