Delphi Help Please

Posted By: adoado

Delphi Help Please - 08/20/07 05:51

Hello all, I need some help (in Delphi)

As part of a 3dgs project I am trying to create a DLL with a form in it to use in my game. So far, so good, but how can I get a picture of a Delphi form into a bitmap file? I cannot capture the screen as the form will be hidden, and the TForm.PaintTo method does not work correctly (components caption, text, etc. are not drawn). Any ideas?

Thanks in advance,
Adoado.
Posted By: Memphis

Re: Delphi Help Please - 08/20/07 17:15

have you tried using form1.canvas.bitmap ?
Posted By: adoado

Re: Delphi Help Please - 08/21/07 05:32

Ah! I got it thanks, PaintTo did seem to work correctly - you must just use INVALIDATE to force a complete redraw on the image you are writing to. Thanks for your help though, Memphis
© 2024 lite-C Forums