Png Files Saving !
Login to reply to this topic.
Tue, 2006-01-17 13:00
Joined: 2005-12-29
Forum posts: 17
Hi all!
It's quiet easy to load jpg/png files using CMdaImageFileToBitmapUtility, and when save from bmp to jpg using CMdaImageBitmapToFileUtility there are no problems. But when trying to save BMP to PNG an error KErrNotSupported (-5) occured.  Undecided
Using expression like :
...........................................................................................
iConverter = CMdaImageBitmapToFileUtility::NewL(*this);
((CMdaImageBitmapToFileUtility*)iConverter)->CreateL((const TDesC&)aFileName,&pngformat,&pngcodec,NULL);
..........................................................................................
Is anybody knows how to fight with this?? Or PNG really not supported?

Andres.
Thanks in advance!   

Tue, 2006-01-17 14:10
Joined: 2004-07-17
Forum posts: 110
Depends what phone / OS version you are building for. On older versions of the OS it really isn't supported. On newer versions you should try using CImageDecoder / CImageEncoder instead.
Tue, 2006-01-17 14:45
Joined: 2005-12-29
Forum posts: 17
Thank you.
I'm programming for SonyEricsson devices, not for Nokia and using Uiq 2.1

/////

Is exists an another decision for solving of this problem??
Mon, 2009-02-02 13:00
Joined: 2009-01-20
Forum posts: 26

Hi,

I am working with symbian UIQ. AS u said I first tried to save my bitmap in bmp format as follows:
iMda = CMdaImageBitmapToFileUtility::NewL(*this);
TMda24BppBmpCodec codec;
TMdaBmpClipFormat format;
TRAPD(err, iMda->CreateL(fileName, &format, &codec, NULL));

In MiuoCreateComplete()
I am calling :
iMda->ConvertL(*iBitmap,0);

I am not getting any error but even I am not getting bmp file too. Actally I have to convert bitmap to jpeg. So, please suggest me wt would be the better idea for that.

Thanks in advance.


copyright 2003-2009 NewLC SARL