Click here to Skip to main content
15,991,071 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to code in C to store and to display any kind of images.
Posted

1 solution

What do you mean of storing JPG image in a file?
If you want to load JPG (in Windows app) using C, you could take a look at this old thread:
How to display a JPG file using BitBlt?[^]
Or you could use some JPG lib like:
this[^]

But to me, it's a lot easier to use Listview and then send LVM_SETBKIMAGE[^] (I believe there're at least 2 of my apps using this :))
 
Share this answer
 
v2
Comments
Sandeep Mewara 28-Apr-11 0:51am    
My 5!
Stephen Wiria 28-Apr-11 1:30am    
Thanks a lot Sandeep
Vijay Vishwakarmar 28-Apr-11 23:22pm    
Mr. Stephen Wiria, I mean, I want to create a file in C which can store jpeg images and whenever we want we can access it to show on the screen.
I am using turbo c compiler.
So please provide relevant info regarding turbo c
Stephen Wiria 29-Apr-11 22:27pm    
To save to a JPG file, explore this:
GDI+ -> GDI+ Image Class -> Save method to a file.

And again to load JPG, i'm sure it's a lot easier if you use Listview and send LVM_SETBKIMAGE
Vijay Vishwakarmar 2-May-11 7:37am    
Thanks!

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