hi
i receive an image via data call (Rcomm).
I want to display it in the screen of device.
how can i do it???
hi
i receive an image via data call (Rcomm).
I want to display it in the screen of device.
how can i do it???
Check documentation/examples/wiki articles/threads about CImageDecoder.
The easy way would be to use CDocumentHandler to open that file.
See http://www.forum.nokia.com/document/...ntHandler.html
Use to OpenFileEmbedded, and it will even do scaling for you![]()
you could use DrawBitmap() from CWindowGc to display the image.CImageDecoder's Convert can be used to convert image
thank you susan
i can load the jpeg image but how i can display it??
i think i must decode it before
Susan was just a little spammer, she won't be bothering you any more.
See the other posts in this thread, you have all the info you need.
-- Lucian
thank you ltomuta so much all other,
I have a good work that awaits me and it interests me very much in spite that I'm new in this field. Thank for all expers of this forum for support and help.
I started an analysis for my application but I do not know it is the right??
I need your advices, can you help me if yes, how I can send my suggestions for you?
Thank you again
Have you checked this article to draw jpeg/png image.
http://wiki.forum.nokia.com/index.ph...age_in_Symbian
Thank you for the help
now i have another question:
if i rescal a jpeg image (example from 640*480 to 150*150 pixel) is his size will decrease??? i need to minimize the size of image from 2O ko to 5ko.
The relation is not linear, since JPEG is a compressed file format. For example an uncompressed 150x150 true color image would still need more than 64 kiloBytes (150*150*3=67500 - larger than your original file). So the resulting size largely depends on compression parameters you supply to CImageEncoder (TJpegImageData::iQualityFactor for example). You can find example code if you search for any of these identifiers in the SDK Help and select "Image Encoding in Image Converter Library".
first of all thank you for the answer
therefore there is no way to reduce a jpeg image?
I explain a bit:
I managed to capture a jpeg image (640 * 480) from the camera of a N 6680 and its size 14K.
I want to reduce the max image, should I do?
Thank you
Whether you reduce the size of the picture, the quality factor or both, the result will be the same, smaller file size and more or less quality loss for the image. You will have to experiment a bit with the parametes and see what is more likely to give you acceptable results.
In fact you could also consider changing the color depth and the compression format.
-- Lucian
yes you're right.
I want to reduce the resolution of the captured image but not N6680 gives me only two (1280 * XXX) and 640 * 480.
I want to capture an image 150 * 150 for example.
If this is no possible how to reduce it??
I need the image reducing to send it over the network.
have you a suggestion
How about a search in the SDK or in the wiki? It will lead your to something like Resize png/jpg image in Symbian
-- Lucian
yes i see it.
but i dont know after this resize if the size in Ko is reduced !