ImageProcessorUtility Class Reference

#include <icl/imageprocessor.h>

class ImageProcessorUtility

Detailed Description

Utility class providing static factory functions for creating instances of CImageProcessor derived classes.

Member Function Documentation

NewImageProcessorExtensionL ( const CFbsBitmap &, TInt, TDisplayMode, TBool )

IMPORT_C CImageProcessorExtension *NewImageProcessorExtensionL(const CFbsBitmap &aBitmap,
TIntaReductionFactor,
TDisplayModeaImageDisplayMode,
TBoolaDisableErrorDiffusion
)[static]

Static factory function for creating instances of CImageProcessorExtension derived classes.

Parameters
aBitmapA reference to the bitmap used.
aReductionFactorThe value indicating how much to shrink the bitmap.
aImageDisplayModeThe display mode to use.
aDisableErrorDiffusionA flag indicating whether error diffusion should be disabled.
Return Value
A pointer to a fully constructed CImageProcessorExtension derived object.

NewImageProcessorL ( const CFbsBitmap &, const TSize &, TDisplayMode, TBool )

IMPORT_C CImageProcessor *NewImageProcessorL(const CFbsBitmap &aBitmap,
const TSize &aImageSize,
TDisplayModeaImageDisplayMode,
TBoolaDisableErrorDiffusion
)[static]
Parameters
aBitmapA reference to the bitmap used.
aImageSizeThe size of image to use.
aImageDisplayModeThe display mode to use.
aDisableErrorDiffusionA flag indicating whether error diffusion should be disabled.
Return Value
A pointer to a fully constructed CImageProcessor derived object.

NewImageProcessorL ( const CFbsBitmap &, TInt, TDisplayMode, TBool )

IMPORT_C CImageProcessor *NewImageProcessorL(const CFbsBitmap &aBitmap,
TIntaReductionFactor,
TDisplayModeaImageDisplayMode,
TBoolaDisableErrorDiffusion
)[static]

Static factory function for creating instances of CImageProcessor derived classes.

Parameters
aBitmapA reference to the bitmap used.
aReductionFactorThe value indicating how much to shrink the bitmap.
aImageDisplayModeThe display mode to use.
aDisableErrorDiffusionA flag indicating whether error diffusion should be disabled.
Return Value
A pointer to a fully constructed CImageProcessor derived object.

ReductionFactor ( const TSize &, const TSize & )

IMPORT_C TIntReductionFactor(const TSize &aOriginalSize,
const TSize &aReducedSize
)[static]

Static function to calculate a reduction factor based on the input parameters. This function is deprecated. It is recommended to use CImageDecoder::ReductionFactor or CImageReadCodec::ReductionFactor(for Plugin writers only) to calculate the reduction factor and then use CImageDecoder::ReducedSize to find the size of the decoded bitmap.

Deprecated

See also: CImageDecoder::ReductionFactor CImageDecoder::ReducedSize CImageReadCodec::ReductionFactor

Parameters
aOriginalSizeA reference to the original size of an item.
aReducedSizeA reference to the new size of an item.
Return Value
The reduction factor.