class CMdaImageFileToBitmapUtility : public CMdaImageDataReadUtility |
7.0s - Replaced by Image Conversion library - use CImageDecoder::FileNewL()
Implements format conversion of a file based image to a bitmap.
This class has been deprecated in 7.0s, it's functionality is now part of the Image Converter Library. For more information see CImageDecoder .
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.
Public Member Functions | |
---|---|
IMPORT_C CMdaImageFileToBitmapUtility * | NewL ( MMdaImageUtilObserver &, CMdaServer *) |
IMPORT_C void | OpenL (const TDesC &, TMdaClipFormat *, TMdaPackage *, TMdaPackage *) |
Private Member Functions | |
---|---|
CMdaImageFileToBitmapUtilityPriv * | Properties () |
Inherited Enumerations | |
---|---|
CActive:TPriority |
Inherited Attributes | |
---|---|
CActive::iStatus | |
CMdaImageUtility::iProperties |
IMPORT_C CMdaImageFileToBitmapUtility * | NewL | ( | MMdaImageUtilObserver & | aObserver, |
CMdaServer * | aServer = NULL | |||
) | [static] |
Constructs a new instance of the file based image to bitmap conversion utility object.
The function leaves if this object cannot be created.
MMdaImageUtilObserver & aObserver | The image utility observer interface |
CMdaServer * aServer = NULL | A pointer to a server object. The default is NULL which means that one is automatically constructed and owned by this conversion utility object. If not NULL, the client must construct, and be responsible for, the server object. This option may be more efficient if a number of conversion utility objects are to be created. |
IMPORT_C 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.NotesThe 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.
const TDesC & aFileName | The full path name of the file. |
TMdaClipFormat * aFormat = NULL | The data format. This is optional. |
TMdaPackage * aCodec = NULL | The codec to use. This is optional. |
TMdaPackage * aExtra = NULL | Any additional information which the Media Server may need to recognise the data format. This is optional. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.