[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 353
  • Last Modified:

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.
0
RonMexico
Asked:
RonMexico
1 Solution
 
jkrCommented:
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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now