Please help! DirectX 7 Question.
Could anyone please share with me the code to take an LPDIRECTDRAWSURFACE7 and export the picture to a .BMP file on the hard drive? I am working in 16 bit color mode. The purpose of this is to take a snapshot of the primary buffer and put it on the hard drive as a screen shot. Thanks ! Mike
[Piebert Entertainment] [Ask The All-Knowing Oracle A Question]------------------------------------------------------------GDSFUBY GameDev Society For UnBanning YodaTheCodaIf you want to see yoda unbanned then put this in your sig ------------------------------------------------------------DAIAGA Dave Astle is a God Association. To join, put this in your sig!Founder and High Priest of DAIAGA[edited by - YodaTheCoda on December 10, 2003 1:57:54 PM]
There could be a function in the Windows API or something to do something like that, but I don''t know of one. So, you''ll need to write your own function to save the data to disk. Look up the bitmap format from somewhere to see how you have to save it.
No there is no need to write your own bitmap saving function because all you need is already in the Win32 API. It''s just a matter of finding out how to do it using the Win32 API which can be hard enough.
Try to look it up at msdn.com or in the platform SDK.
-René

-René
Real programmers don't document, if it was hard to write it should be hard to understand
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement