Join Now
Quality Rating:
  • Currently 4.0 / 5
(4.0 / 5 - 1 vote cast)
Expertise Level:
  • Currently 4.0 / 5
(4.0 / 5 - 1 vote cast)

This page was last modified 06:53, 25 March 2008.

Image Encoding

From Forum Nokia Wiki

Using CImageEncoder class we can save images originating from the screen and photos from camera, etc. to files or descriptors. This process is in two stages:

Object Creation

Creation of encoder object is synchronous operation and is performed using the constructors FileNewL() or DataNewL().

The FileNewL() constructor is used when converting image data that is to be saved to file. And DataNewL() constructor is used when converting image data that is to be saved to descriptor.

Object Conversion

Before converting image data, we need to the destination image format specific data using CFrameImageData. And using Convert() method we can convert the image to destination image format. Following is the code snippet for convert the image

TJpegImageData imageData = new (ELeave) TJpegImageData;
 
// Set some format specific data
imageData->iSampleScheme = TJpegImageData::EColor444;
imageData->iQualityFactor = 95;
 
iFrameImageData = CFrameImageData::NewL();
 
// frameData - ownership passed to iFrameImageData after AppendImageData
User::LeaveIfError(iFrameImageData->AppendImageData(imageData));
 
// Do the convert
iEncoder->Convert(iRequesStatus,iFrameBitmap,iFrameImageData);
Related Discussions
Thread Thread Starter Forum Replies Last Post
Send a file via Bluetooth bmichel Python 6 2008-05-20 20:40
Sending hebrew MARAMM Mobile Java General 8 2003-10-23 11:40
Not enough charcters for SMS on 3310 Ian_Parkes General Messaging 7 2003-04-23 10:28
Sending plain text through socket xchewy Symbian Networking & Messaging 15 2008-03-13 13:02
saving images Larry101 Mobile Java General 4 2007-12-07 07:52
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtopicQUqfnTopicZseriesE5f60Q
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX