#include <icl/imageprocessor.h>
class ImageProcessorUtility |
Public Member Functions | |
---|---|
IMPORT_C CImageProcessorExtension * | NewImageProcessorExtensionL(const CFbsBitmap &, TInt, TDisplayMode, TBool) |
IMPORT_C CImageProcessor * | NewImageProcessorL(const CFbsBitmap &, const TSize &, TDisplayMode, TBool) |
IMPORT_C CImageProcessor * | NewImageProcessorL(const CFbsBitmap &, TInt, TDisplayMode, TBool) |
IMPORT_C TInt | ReductionFactor(const TSize &, const TSize &) |
Utility class providing static factory functions for creating instances of CImageProcessor derived classes.
IMPORT_C CImageProcessorExtension * | NewImageProcessorExtensionL | ( | const CFbsBitmap & | aBitmap, |
TInt | aReductionFactor, | |||
TDisplayMode | aImageDisplayMode, | |||
TBool | aDisableErrorDiffusion | |||
) | [static] |
Static factory function for creating instances of CImageProcessorExtension derived classes.
Parameter | Description |
---|---|
aBitmap | A reference to the bitmap used. |
aReductionFactor | The value indicating how much to shrink the bitmap. |
aImageDisplayMode | The display mode to use. |
aDisableErrorDiffusion | A flag indicating whether error diffusion should be disabled. |
Returns: A pointer to a fully constructed CImageProcessorExtension derived object.
IMPORT_C CImageProcessor * | NewImageProcessorL | ( | const CFbsBitmap & | aBitmap, |
const TSize & | aImageSize, | |||
TDisplayMode | aImageDisplayMode, | |||
TBool | aDisableErrorDiffusion | |||
) | [static] |
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)
See also: CImageReadCodec::ReductionFactor ImageProcessorUtility::NewImageProcessorL(const CFbsBitmap& aBitmap,TInt aReductionFactor,TDisplayMode aImageDisplayMode, TBool aDisableErrorDiffusion)
Parameter | Description |
---|---|
aBitmap | A reference to the bitmap used. |
aImageSize | The size of image to use. |
aImageDisplayMode | The display mode to use. |
aDisableErrorDiffusion | A flag indicating whether error diffusion should be disabled. |
Returns: A pointer to a fully constructed CImageProcessor derived object.
IMPORT_C CImageProcessor * | NewImageProcessorL | ( | const CFbsBitmap & | aBitmap, |
TInt | aReductionFactor, | |||
TDisplayMode | aImageDisplayMode, | |||
TBool | aDisableErrorDiffusion | |||
) | [static] |
Static factory function for creating instances of CImageProcessor derived classes.
Parameter | Description |
---|---|
aBitmap | A reference to the bitmap used. |
aReductionFactor | The value indicating how much to shrink the bitmap. |
aImageDisplayMode | The display mode to use. |
aDisableErrorDiffusion | A flag indicating whether error diffusion should be disabled. |
Returns: A pointer to a fully constructed CImageProcessor derived object.
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.
Replaced by CImageDecoder::ReductionFactor
See also: CImageDecoder::ReductionFactor CImageDecoder::ReducedSize CImageReadCodec::ReductionFactor
Parameter | Description |
---|---|
aOriginalSize | A reference to the original size of an item. |
aReducedSize | A reference to the new size of an item. |
Returns: The reduction factor.