Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <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:


Member functions


ReductionFactor(const TSize &,const TSize &)

Interface status: deprecated Replaced by CImageDecoder::ReductionFactor

IMPORT_C static 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(const TSize &,const TSize &)const or CImageReadCodec::ReductionFactor(for Plugin writers only) to calculate the reduction factor and then use CImageDecoder::ReducedSize(const TSize &,TInt,TSize &)const 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.

See also:


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

Interface status: deprecated Replaced by CImageReadCodec::ReductionFactor & NewImageProcessorL(const CFbsBitmap& aBitmap,TInt aReductionFactor,TDisplayMode aImageDisplayMode, TBool aDisableErrorDiffusion)

IMPORT_C static 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(const TSize &,const TSize &)const to calculate the reduction factor and then use ImageProcessorUtility::NewImageProcessorL(const CFbsBitmap &,TInt,TDisplayMode,TBool)

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.

See also:


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

IMPORT_C static 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.