Click here to Skip to main content
15,888,008 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hello Everyone! i am trying to write codes for image reading now a days but i am not having the idea how can i do it. my humble request to all of you please give me guidance. I AM NOT LOOKING FOR CODES BUT I WANT TO LEARN HOW TO CODE FOR THE SAME!
Posted

Usually you use a library for loading a jepg file into something useful (see, for instance, "Loading and Displaying Bitmaps" using GDI+[^].
A completely different matter would be writing yourself the jpeg decoder. This is a pretty hard task (Google is your friend[^]).
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 17-Sep-15 17:02pm    
5ed.
—SA
CPallini 18-Sep-15 4:00am    
Thank you.
Quote:
i am not having the idea how can i do it. my humble request to all of you please give me guidance
You are on the wrong way.
Don't do this project, not yet.

My guess is that you are learning programming.
You have to know that you can do pretty much anything in any language, simply some languages are harder for beginners because there is more pitfalls to handle.

Advices:
- Start with an easy/safe language: VB, Java, C#, not C
- Read documentation / Follow tutorials (a lot of them)
- Start with tiny/useless projects, the purpose is to learn programming, not doing something useful.
- Start with console mode programs (no fancy graphics, no mouse).
- A problem ? Google is your friend.
- Learn Boole algebra
- Learn one or more analyse methods, I recommend E.W. Djikstra top-Down method

There is no shortcut to knowledge, no one can learn for you, you are the only one that can do it.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 17-Sep-15 17:04pm    
It's "Boolean Algebra". And items you listed are too narrow... But basically you advice is good.
—SA
Patrice T 17-Sep-15 17:25pm    
Translation from french :) "algébre de Boole". strait translation would be "Boole's algebra".
"Too narrow", probably. I consider Boolean algebra and analyse method like angular stones in matter of programming.
What would you add ?

Thanks for comment
Member 11932208 17-Sep-15 17:36pm    
you said use java. ok i can use java but i want to know about the basic steps to decode image. please tell me!
Patrice T 17-Sep-15 18:29pm    
An advantage of Java over C is that Java is OO language, and it permit you to handle complex think things with fairly simple syntax.
With Java, you will find libraries that handle details for you.

If you want to DIY, it is a huge subject, each image format use a different combination of encoding and compression, and this is highly technical.
A simple hint, the more the encoding/compression is efficient, the more it is hard to understand. Complete books are necessary to cover all aspects of a format like .jpg or .png
Use Google to find articles on the subject.
use queries likes
jpeg format encoding or decoding
jpeg compression
add source code in the query. Be careful, they are not basic programming.

The most used compressions are certainly LZ or LZW kind of compressions which are covered by books by them self.
The easiest format is certainly .bmp which is not compressed.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900