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
282 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
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
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.

829 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