Location:
MdaImageConverter.h
Link against: MediaClientImage.lib
CMdaImageFileToBitmapUtility
Supported from 5.0
Implements format conversion of a file based image to a bitmap.
The class provides functions to create an instance of this conversion utility and to open an existing image file.
Conversion is performed using the image conversion utility interface.
|
Defined in CMdaImageFileToBitmapUtility
:
NewL()
, OpenL()
Inherited from CActive
:
Cancel()
,
Deque()
,
DoCancel()
,
EPriorityHigh
,
EPriorityIdle
,
EPriorityLow
,
EPriorityStandard
,
EPriorityUserInput
,
IsActive()
,
IsAdded()
,
Priority()
,
RunError()
,
RunL()
,
SetActive()
,
SetPriority()
,
TPriority
,
iStatus
Inherited from CBase
:
operator new()
Inherited from CMdaImageUtility
:
CancelConvertL()
,
Close()
,
ConvertL()
,
FrameCount()
,
FrameInfo()
Inherited from MMdaObjectStateChangeObserver
:
MoscoStateChangeEvent()
static CMdaImageFileToBitmapUtility* NewL(MMdaImageUtilObserver& aObserver,CMdaServer* aServer = NULL);
Constructs a new instance of the file based image to bitmap conversion utility object.
The function leaves if this object cannot be created.
|
|
void OpenL(const TDesC& aFileName,TMdaClipFormat* aFormat = NULL,TMdaPackage* aCodec = NULL,TMdaPackage* aExtra = NULL);
Opens the existing file based image.
The function is asynchronous. When the operation is complete,
successfully or otherwise, the callback function
MMdaImageUtilObserver::MiuoOpenComplete()
is called.
Open must complete successfully before starting any conversion
operation. The function can complete with KErrUnderflow
, if there
is insufficient information in the file. Typically, this occurs when using the
file as a cache. In this situation, open should be performed repeatedly until
the file has accumulated enough information for the operation to complete with
KErrNone
.
Notes
The optional parameters can be used to force the Media Server to interpret the file as being of a specific type. This is necessary for formats such as WAP wireless bitmap where the supplied file does not contain a uniquely recognisable signature.
|