MFC: How to create a CPaintDC, render/paint to it, and then save the rendered picture to both a BMP and a DIB

Hello... I'm having an *awful* time finding code to do this thing that may not be straightforward, but that I *know* can be done.  I'm also getting flashbacks to MFC, it just seems like everything is such a struggle.

Can some MFC and/or GDI expert cut-and-paste (please no google searches though, I've done plenty of that) some working code to do this?   I've been cobbling code together all day and don't seem to be able to get there.  I would DEARLY appreciate it.

Thanks very much.
RonMexicoAsked:
Who is Participating?
 
jkrConnect With a Mentor Commented:
It's a while ago since I last worked with MFC, but I remember 'CxImage' to be one of the most helpful instruments when it comes to thetask of handling images, and the license is free. Check out http://www.codeproject.com/Articles/1300/CxImage
0
 
RonMexicoAuthor Commented:
That actually wasn't applicable per se, but it is quite useful sample software for general MFC imaging.
0
All Courses

From novice to tech pro — start learning today.