Search the web
Sign In
New User? Sign Up
c-prog · C/C++ Programmer's Mailing List
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Click here for the latest updates on Groups Message search

Messages

  Messages Help
Advanced
How to read jpeg or bmp file in c language?   Topic List   < Prev Topic  |  Next Topic >
Reply  | 
Re: [c-prog] How to read jpeg or bmp file in c language?

On Tue, Feb 9, 2010 at 8:25 AM, satish uniyal <satishuniyal1@...> wrote:

> Thanks for your reply, but when I run this program it gives error [Error
reading file] and don't read jpg or bmp file.

You should use a 3rd party library for loading images, like
ImageMagick. It's well-tested and robust. And free.

http://www.imagemagick.org/

-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
If I were to divulge it, it would overturn the world."
-- Jelaleddin Rumi



Tue Feb 9, 2010 5:08 pm

smartandkewl
Online Now Online Now
Send Email Send Email

 | 
Expand Messages Author Sort by Date

Dear friends, Could you please share, How to read jpeg or bmp file in c language? Regards Satish Uniyal [Non-text portions of this message have been removed]...
satish uniyal
satishuniyal1
Offline Send Email
Feb 9, 2010
11:47 am

... /** Untested **/ char buff[512]; int r = 0; FILE* fp = fopen("~/mypic.jpg", "rb"); while( fp && (r = fread(buff, sizeof buff, 1, fp) == sizeof buff){ ...
Paul Herring
shabble
Offline Send Email
Feb 9, 2010
11:57 am

Dear Paul, Thanks for your reply, but when I run this program it gives error [Error reading file] and don't read jpg or bmp file. Could you please assist...
satish uniyal
satishuniyal1
Offline Send Email
Feb 9, 2010
5:00 pm

... You should use a 3rd party library for loading images, like ImageMagick. It's well-tested and robust. And free. http://www.imagemagick.org/ -- Brett ... ...
Brett McCoy
smartandkewl
Online Now Send Email
Feb 9, 2010
5:12 pm

... Use a third-party library such as ImageMagick. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. ...
Thomas Hruska
shininglightpro
Offline Send Email
Feb 9, 2010
11:58 am
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help