Solved

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

Posted on 2015-01-02
2
303 Views
Last Modified: 2015-01-05
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
Comment
Question by:RonMexico
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 40528328
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
 

Author Comment

by:RonMexico
ID: 40532222
That actually wasn't applicable per se, but it is quite useful sample software for general MFC imaging.
0

Featured Post

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When asking a question in a forum or creating documentation, screenshots are vital tools that can convey a lot more information and save you and your reader a lot of time
Windows 10 Creator Update has just been released and I have it working very well on my laptop. Read below for issues, fixes and ideas.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

718 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question