Click here to Skip to main content
15,867,488 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
OK, Getting no responses to my question, let me rephrase the question! I need to open a jpg file, draw the image in that file on a dialog, let my user mark-up the image on the dialog ( draw lines and circles etc ) then capture the result of the mark-up to be saved as a jpg and/or printed. What class do you recommend to do all of these tasks?

Ron H.
Posted
Comments
Sergey Alexandrovich Kryukov 3-Mar-14 11:10am    
Okay, and what's wrong with just reading documentation on those types, too see what they do?
—SA
[no name] 4-Mar-14 10:28am    
Thanks Sergey. I used the CImage and while it gives me all the functionality that I need, I am having trouble using StretchBlt. Anytime I change the size it messes with the color. It even messes with the color in the sample "SimpleImage" from MSDN. I don't understand the bitmap handle reference? Is there some reason that I need to attach a bitmap rather than load a file? Please explain?

Regards
Ron H.

1 solution

That would be CImage: http://msdn.microsoft.com/en-us/library/bwea7by5.aspx[^].

Note that you also may want to use a bitmap handle, like this: http://msdn.microsoft.com/en-us/library/b15ctcha.aspx[^].

See also: http://msdn.microsoft.com/en-us/library/6t1yfd35.aspx[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900