?
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
Medium Priority
?
314 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 2000 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 SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

This article helps those who get the 0xc004d307 error when trying to rearm (reset the license) Office 2013 in a Virtual Desktop Infrastructure (VDI) and/or those trying to prep the master image for Microsoft Key Management (KMS) activation. (i.e.- C…
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

762 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