• Advertisement
Sign in to follow this  

Reading and writing an image file

This topic is 1734 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I would like to read a png file and display it and then again modify some pixel value and write it back. How can that be done? Pleasse provide some advice.

Share this post


Link to post
Share on other sites
Advertisement

You want to do this programmatically?  If so, what language and Environment?

 

Or do you want to do this manually, as in some image editing software like Paint, Paint.NET, GIMP, or Photoshop?

Share this post


Link to post
Share on other sites

Thank you very much. I had some mistake. It is a jpg file. I have extracted the header i.e. width and height. Now I would like to read the pixel and display it. Please provide me some suggestion. Thanks.

Share this post


Link to post
Share on other sites

Thank you very much. I had some mistake. It is a jpg file. I have extracted the header i.e. width and height. Now I would like to read the pixel and display it. Please provide me some suggestion. Thanks.

Go here:

 

http://www.ijg.org/

Share this post


Link to post
Share on other sites
The JPEG spec is kind of tricky to implement, so unless you really want to know how it works, I'd suggest using an existing library to read and write JPG files.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement