#include <mdaimageconverter.h>
Link against: mediaclientimage.lib
class CMdaImageBitmapToFileUtility : public CMdaImageDataWriteUtility |
Public Member Functions | |
---|---|
IMPORT_C void | CreateL(const TDesC &, TMdaClipFormat *, TMdaPackage *, TMdaPackage *) |
IMPORT_C CMdaImageBitmapToFileUtility * | NewL(MMdaImageUtilObserver &, CMdaServer *) |
Inherited Attributes | |
---|---|
CActive::iStatus | |
CMdaImageUtility::iProperties |
Inherited Enumerations | |
---|---|
CActive:TPriority |
Deprecated
Implements format conversion of a bitmap to a file-based image.
Replaced by Image Conversion library - use CImageEncoder::FileNewL()
The class provides functions to create an instance of this conversion utility and to create the file. Conversion is performed using the image conversion utility interface.
See also: CImageEncoder::FileNewL()
IMPORT_C void | CreateL | ( | const TDesC & | aFileName, |
TMdaClipFormat * | aFormat, | |||
TMdaPackage * | aCodec, | |||
TMdaPackage * | aExtra | |||
) |
Creates a new file to receive the file-based image.
The function is asynchronous. When the operation is complete, successfully or otherwise, the callback function MMdaImageUtilObserver::MiuoCreateComplete() is called. The file must be have been created before any conversion operation can start. Note, however, that the file will expand to accommodate the data i.e. image data is not truncated if the original size of the file is too small.
Parameters | |
---|---|
aFileName | The full path name of the file to be created. |
aFormat | The data format. |
aCodec | The codec to use. |
aExtra | Any additional information which the Media Server may need to recognise the data format. |
IMPORT_C CMdaImageBitmapToFileUtility * | NewL | ( | MMdaImageUtilObserver & | aObserver, |
CMdaServer * | aServer = 0 | |||
) | [static] |
Constructs a new instance of the bitmap to file-based image conversion utility.
The function leaves if this object cannot be created.
Parameters | |
---|---|
aObserver | The image utility observer interface |
aServer | 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. |