Hi,
i want to save a bitmap which's loaded onto a dialog window into the disk as a bmp/jpg file. What are the things i should learn to do this? what msdn articles i should read?
Thanx a lot for any help.
Hi,
i want to save a bitmap which's loaded onto a dialog window into the disk as a bmp/jpg file. What are the things i should learn to do this? what msdn articles i should read?
Thanx a lot for any help.
GameJolt: https://gamejolt.com/@KasunL
Game Development Youtube: https://is.gd/XyhYoP
Amateur IT Blog: http://everything-geeky.blogspot.com/
(and, sorry for my amateur English)
Could you be more specific?
Your program's dialog window or some other program's?
"The Internet treats censorship as damage and routes around it." - John Gilmore
The simplest way is to use gdi+ which has built in support for both file types you have mentioned. In particular, refer to Using Image Encoders and Decoders.
CProgramming FAQ
Caution: this person may be a carrier of the misinformation virus.
>>Your program's dialog window or some other program's?
it's mine.
Thanx for the replys. i'll checkout the gdi+ library.
GameJolt: https://gamejolt.com/@KasunL
Game Development Youtube: https://is.gd/XyhYoP
Amateur IT Blog: http://everything-geeky.blogspot.com/
(and, sorry for my amateur English)
Why do you want to save it as a file?
If you can output it in a dialog, it means you already have it as a resource (bmp).
"The Internet treats censorship as damage and routes around it." - John Gilmore
actually i'm not loading the bmp onto the dlg, i'm doing a screen cap.
GameJolt: https://gamejolt.com/@KasunL
Game Development Youtube: https://is.gd/XyhYoP
Amateur IT Blog: http://everything-geeky.blogspot.com/
(and, sorry for my amateur English)