Creating a Bitmap output without screen capture.
-
Dear All. I need to create a Bitmap output file from statistical data without showing to screen. The image will be built in memory and then output to file. I will need to do this in VC++ SDK, not MFC. Can anyone point me in the right direction on this one? (Books / examples / links... etc) I've tried looking around and there are lots of examples of Loading bitmaps and outputting to screen but none on building and outputting from memory. Many thanks ;)
u6ik
-
Dear All. I need to create a Bitmap output file from statistical data without showing to screen. The image will be built in memory and then output to file. I will need to do this in VC++ SDK, not MFC. Can anyone point me in the right direction on this one? (Books / examples / links... etc) I've tried looking around and there are lots of examples of Loading bitmaps and outputting to screen but none on building and outputting from memory. Many thanks ;)
u6ik
Are you wanting to know the format of a .bmp file? :confused:
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
Dear All. I need to create a Bitmap output file from statistical data without showing to screen. The image will be built in memory and then output to file. I will need to do this in VC++ SDK, not MFC. Can anyone point me in the right direction on this one? (Books / examples / links... etc) I've tried looking around and there are lots of examples of Loading bitmaps and outputting to screen but none on building and outputting from memory. Many thanks ;)
u6ik
You can create a memory device context by means of
CreateCompatibleDC
(see the related documentation) then use the GDI primitives to draw on it (all the example you have also applies to memory device context). Hope that helps.If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
-
Dear All. I need to create a Bitmap output file from statistical data without showing to screen. The image will be built in memory and then output to file. I will need to do this in VC++ SDK, not MFC. Can anyone point me in the right direction on this one? (Books / examples / links... etc) I've tried looking around and there are lots of examples of Loading bitmaps and outputting to screen but none on building and outputting from memory. Many thanks ;)
u6ik
Do you want to create a graphic file?
WhiteSky
-
Do you want to create a graphic file?
WhiteSky