Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hw do I save a bitmap image that is created on the screen to a disk ?

Status
Not open for further replies.

abi369

Programmer
May 2, 2002
5
0
0
IN
Hey,
I am Akash from India(Bangalore) . I am developing a small application related to LAN using VC++.I plan to take a snapshot of a system and send it to a remote system over the network.The snapshot , as you will know , is in a bitmap format.I have sent the snapshot to the remote system after converting it to JPEG format (for obvious reasons).I have used the BITBLT function to capture the sanpshot.The problem is that I want to save the snapshot onto a disk file.
I would be very grateful if someone could help me with a VC++ code to transfer a bitmap image from a windowDC to a Memdc.
Thanking one and all,
Akash
 
Check out this thread. I posted some code in it and what I posted is related to 8 bits per pixel (gray scale), it would require a bit of modification to use the default 32 bits per pixel in windows but it should get you started.

Matt

thread116-260304
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top