Click here to Skip to main content
15,892,697 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have to start work on image encryption in C. i used to work with java but now want to switch from java to C language. But at initial stage i have problem that how do i start even can't open or display image in C. if you kind to me, please tell the program or code for displaying or count the pixels of the image in C which is stored in my local drive.

What I have tried:

tried c graphics header file and functions of c graphics but still not get the solution.
Posted
Updated 30-Jan-17 20:38pm
v4
Comments
Patrice T 19-Jan-17 6:56am    
Show code
ritu shaktawat 21-Jan-17 1:04am    
i couldn't find the right code for opening or displaying image in c. i have done this in java but not in c.

You can use The FreeImage Project[^]
 
Share this answer
 
There is no "standard way" to display an image in C - you will have to look and find out what graphics libraries are provided with your compilation system, as it will vary from system to system. You will then have to look for tutorials / manuals / sample code for that specific graphics library.

C is a general purpose language which is not specifically ties to any framework, unlike most Java implementations.
 
Share this answer
 
Comments
ritu shaktawat 21-Jan-17 1:01am    
i'm working on radstudio 10.1 berlin for my coding and compilation. please can you tell me the code for that particular problem for the radstudio or turbo c++ compiler.

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