|
-
Oct 28th, 2002, 05:22 PM
#1
Thread Starter
Addicted Member
Saving HDC to File
Is there any way I can save a HDC to a file such as a .gif, .bmp, .jpg or anything else along that line? In VB there is a function SavePicture. Is there anything like this for C++?
thx in advance
-
Oct 29th, 2002, 06:47 AM
#2
Frenzied Member
It's a lot more complex than calling Picture1.SavePicture...
Here is a discussion - note that some functions the poster refers to are in another post on the same board. They are code he wrote - like WRITEtoDIB()
http://codeguru.earthweb.com/bitmap/..._to_file.shtml
-
Oct 29th, 2002, 02:49 PM
#3
It's quite easy with GDI+.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 29th, 2002, 05:13 PM
#4
Monday Morning Lunatic
You limit your options a bit there, though.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Oct 30th, 2002, 11:48 AM
#5
Yes, that is true. But not more than SaveImage would do.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 30th, 2002, 12:33 PM
#6
Monday Morning Lunatic
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Oct 30th, 2002, 06:59 PM
#7
Thread Starter
Addicted Member
is there a way to do this without MFC?
-
Oct 30th, 2002, 07:33 PM
#8
Monday Morning Lunatic
GDI+ != MFC.
You can do it, you just need to use a memory DC, then save the data to a DIB file 
MSDN is your friend...
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Oct 31st, 2002, 04:42 PM
#9
Thread Starter
Addicted Member
could u give me the link to find this on msdn?
-
Oct 31st, 2002, 09:27 PM
#10
Lively Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|