🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Transfering Bitmaps

Started by
1 comment, last by WizHarDx 22 years, 5 months ago
Anyone got any Idea how I could get a snapshot of the screen then pass it down the network & recieve it. I gave managed to get the screenshot in PBITMAPINFO struct & tried to send it , but at the other end I don''t know how to convert the PBITMAPINFO to HBITMAP ? any help would be much apprciated espically code examples. thanx in advance WizHarD
who is it that keeps on nicking WizHarD name !! :P
Advertisement
Call CreateCompatibleBitmap and pass your windows DC to it. Call SelectObject(yourWindowsDC, yourNewBitmap). Then call BitBlt(...) and move your information from your colour buffer (what you transferred over the network) into the destination context. This will blit the bitmap to your window.

Hopefully this is what you want, if not let me know.

Dire Wolf
www.digitalfiends.com
[email=direwolf@digitalfiends.com]Dire Wolf[/email]
www.digitalfiends.com
It has been awhile since I''ve done Win32 GUI programming so I''m not sure if the above idea will work.

Dire Wolf
www.digitalfiends.com
[email=direwolf@digitalfiends.com]Dire Wolf[/email]
www.digitalfiends.com

This topic is closed to new replies.

Advertisement