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.
Printable View
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.
Could you be more specific?
Your program's dialog window or some other program's?
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.
>>Your program's dialog window or some other program's?
it's mine.
Thanx for the replys. i'll checkout the gdi+ library.
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).:D
actually i'm not loading the bmp onto the dlg, i'm doing a screen cap.