DirectX

Moderators: Sephiroth
Number of threads: 130
Number of posts: 207

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Copy IDirect3DSurface9 to HBITMAP Posted by Narutokun on 14 Oct 2012 at 2:16 AM
Hi guys

Im working on a application where i have to render from a IDirect3DSurface9 to a bitmap in memory. I only have access to the HDC and HBITMAP of this bitmap. My question is, how can i get hold of the memory location of this bitmap? I tried using BitBlt but it turned things into a slideshow(less than 0.5 fps). Im guessing i need to lock the surface and copy the bits directly using memcpy but until i find the location of this surface im stuck....any ideas?

Thanks
JB



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.