MImageConvScaler Class Reference

#include <icl/imageconversionextensionintf.h>

class MImageConvScaler : public MImageConvExtension

Inherits from

Detailed Description

Scaling extension for Image Conversion Library

Member Function Documentation

GetCapabilities ( TScalerCaps & )

voidGetCapabilities(TScalerCaps &aCaps)const [pure virtual]

Gets the scaling capabilities.

Parameters
aCapsReturns scaling capabilities of the codec plugin.

SetScalingL ( const TSize &, TImageConvScaler::TScalerQuality, TBool )

voidSetScalingL(const TSize &aDesiredSize,
TImageConvScaler::TScalerQualityaQuality,
TBoolaLockAspectRatio
)[pure virtual]
Request scaling to the desired size using the quality specified and specifying if the aspect ratio is to be preserved.
Parameters
aDesiredSizeProposed size of the scaled image.
aQualityDesired quality of the image. Allows codec to lower quality targets to improve performance.
aLockAspectRatioSet to ETrue if the aspect ratio of the original image is to be preserved.
Leave Codes
KErrNotSupportedif an invalid size is passed.
KErrNotSupportedif aLockAspectRatio is EFalse and codec only supports preservation of aspect ratio.

SetScalingL ( TInt, TImageConvScaler::TScalerQuality )

voidSetScalingL(TIntaScalingCoeff,
TImageConvScaler::TScalerQualityaScalingQuality
)[pure virtual]

Define the scaling to be applied to the image according to the given coefficient at the requested quality.

Parameters
aScalingCoeffScale 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.
aScalingQualityDesired quality of the image. Allows codec to lower quality targets to improve performance.
Leave Codes
KErrNotSupportedif codec cannot perform the requested scale.