I have a few comments on this code.
(1) What libraries need to be imported in the MMP for this class?
(2) Can you please provide a working example on how to use this class? (not just the implementation)
can you provide an working example of this?
Looks like there's a bug that prevents this compiling since: aResult.iConfidence is not definted anywhere.
It might be better to use a constant for comparison here e.g. CApaDataRecognizerType's EUnlikely or EPossible values.
The CImageDecoder class doesn't seem to be deleted anywhere. This would result in a memory leak.
Furthermore, it seems that the file which has been converted, is locked. So after converting an image, it can't be written and replaced anymore until the app closes.
where is aResult here.
Icant find it anywhere Please correct this.
Since symbian does not provides direct API to load images, this article is very useful to load image. The source code given in this article load images asynchronously using active objects.
Article very clearly explained about how to load images using CImageDecoder. Usually beginners will face difficulties in using CImageDecoder class, so this article is specially useful to beginners.
--kamlesh sangani 14:54, 4 September 2009 (UTC)
The article describes the way of reading images in Symbian OS. It provides source code to convert a non-bitmap image file to symbian bitmap file and to read them. The code given in the article has used Active objects to perform this asynchronous task.
The CImageReader is the active object which performs the asynchronous task to convert the file into bitmap file and read it. The GetFileType method is used to find the type of the image file. Though the article doesn't illustrates the code algorithm, you will find it easy to understand if you have a bit of knowledge of Symbian C++.
This article can be useful to the beginners who are more interested in graphics field, as i found it more interesting.
--Deepikagohil 17:49, 8 September 2009 (UTC)