Exforsys

Free Training

how to open image file in c

This is a discussion on how to open image file in c within the C and C++ forums, part of the Programming Talk category; i want to store a graphic file by taking each and every pixel into a file and then i want ...

Go Back   Exforsys > Programming Talk > C and C++

Exforsys.com


C and C++ C and C++

Reply

 

LinkBack Thread Tools Search this Thread
  #1 (permalink)  
Old 03-19-2006, 02:38 AM
Junior Member
 
Join Date: Mar 2006
Posts: 2
vijaykumarreddy is on a distinguished road
how to open image file in c

i want to store a graphic file by taking each and every pixel into a file
and then i want to retrieve it when i need moreover i need to open .gif or .jpg atleast .bmp file using c program
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-09-2006, 03:02 AM
Member
 
Join Date: May 2004
Posts: 42
itzsug
Hi Vijay,

In order to store an image u need to understand the format of file like .gif, .jpg etc.

Thanks

-Jagadish
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-28-2006, 07:08 PM
Member
 
Join Date: Apr 2006
Posts: 65
priyaraji is on a distinguished road
Hi,
You can get every pixel and store into a file and also retrieve and use it as per your choice by using graphic commands in C language.Commands like getpixel(),sertpixel(),.. are there to code your requirment.These commands take pixel from worldview an dmap it to viewport and commands are there to do viceversa also.

To have a good reading of these commands and code your requirment have a reading of the book

Graphics in C - By Vijay Mukhi's - BPB Publications
Also for C++ you have C++ and Graphics - The Future of C - Vijay Mukhi's - BPB Publications

This gives a detailed explanation of syntax of all graphic commands in C

Sripriya
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-17-2008, 06:25 AM
Junior Member
 
Join Date: Jul 2008
Posts: 1
raji.iitm is on a distinguished road
image

You can get every pixel and store into a file and also retrieve and use it as per your choice by using graphic commands in C language.Commands like getpixel(),sertpixel(),.. are there to code your requirment.These commands take pixel from worldview an dmap it to viewport and commands are there to do viceversa also.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-30-2008, 05:35 AM
zephyr's Avatar
Member
 
Join Date: Dec 2007
Posts: 35
zephyr is on a distinguished road
As I know before store an image its better to know the format of the file like .gif, .jpg etc. so, that its not difficult to store an imange.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 11:29 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
Copyright 2004 - 2009 Exforsys Inc. All rights reserved.