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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy hidden form to .bmp?

Status
Not open for further replies.

lester50

Programmer
Apr 5, 2001
14
US
I have a project where I display information on a blank form and then copy a form to a .bmp file using bitblt.

I would like to keep the form I am 'drawing' hidden, so my question: Does anyone know how to copy a form to a .bmp file without making the form visible (I do not want the user to see the screen flash) - If I use bitblt, I only get the desktop - not my invisble form. I have also tried drawing the form while hidden, then do a quick show, then bitblt, then hide, but the flash is very obvious.

As an alternative, are there any drwaing objects I could use? - like defining MS Paint as an object and then being able to 'draw' to the object and then save the object as a .bmp file?

Thanks in advance,
jlester@lester.com
 
Hi,

SavePicture form1.Image,"C:\temp\test.bmp"

Remember to set form1.autoredraw=true. I also had some problems if the border style was=2, use borderstyle=1 if possible.

:) Sunaj
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top