Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: imageprocessor.h
Link against: imageconversion.lib

Class ImageProcessorUtility

class ImageProcessorUtility;

Description

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

Members

Defined in ImageProcessorUtility:
NewImageProcessorL(), NewImageProcessorL(), ReductionFactor()


Member functions


ReductionFactor()

static IMPORT_C TInt ReductionFactor(const TSize &aOriginalSize, const TSize &aReducedSize);

Description

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.

Parameters

const TSize &aOriginalSize

A reference to the original size of an item.

const TSize &aReducedSize

A reference to the new size of an item.

Return value

TInt

The reduction factor.


NewImageProcessorL()

static IMPORT_C CImageProcessor *NewImageProcessorL(const CFbsBitmap &aBitmap, const TSize &aImageSize, TDisplayMode aImageDisplayMode, TBool aDisableErrorDiffusion);

Description

Static factory function for creating instances of CImageProcessor derived classes. This fuction is deprecated. It is recommended for plugin writers to use default implementation of CImageReadCodec::ReductionFactor to calculate the reduction factor and then use NewImageProcessorL(const CFbsBitmap& aBitmap,TInt aReductionFactor,TDisplayMode aImageDisplayMode, TBool aDisableErrorDiffusion)

Parameters

const CFbsBitmap &aBitmap

A reference to the bitmap used.

const TSize &aImageSize

The size of image to use.

TDisplayMode aImageDisplayMode

The display mode to use.

TBool aDisableErrorDiffusion

A flag indicating whether error diffusion should be disabled.

Return value

CImageProcessor *

A pointer to a fully constructed CImageProcessor derived object.


NewImageProcessorL()

static IMPORT_C CImageProcessor *NewImageProcessorL(const CFbsBitmap &aBitmap, TInt aReductionFactor, TDisplayMode aImageDisplayMode, TBool aDisableErrorDiffusion);

Description

Static factory function for creating instances of CImageProcessor derived classes.

Parameters

const CFbsBitmap &aBitmap

A reference to the bitmap used.

TInt aReductionFactor

The value indicating how much to shrink the bitmap.

TDisplayMode aImageDisplayMode

The display mode to use.

TBool aDisableErrorDiffusion

A flag indicating whether error diffusion should be disabled.

Return value

CImageProcessor *

A pointer to a fully constructed CImageProcessor derived object.