Create Jpeg Loader

papageorge

New member
Joined
Mar 14, 2010
Messages
2
Programming Experience
5-10
Hello,

I want to write a jpeg loader. Can you give me some tips in order to start because I do not have experience from handling bytes?

I saw the jpeg specification from wikipedia and I have sth like this in my mind

VB.NET:
1)read file
2)Get Byte Array
3) If array(0)=0xFFD8 then start the image

thank you
 
You can call IO.File.ReadAllBytes to get a Byte array containing the entire contents of the file. You can then loop through the array or access random Bytes by index.

You can also open a FileStream and access data in the file randomly using the Read methods and Seek.

That said, could you not just call Image.FromFile?
 

Latest posts

Back
Top