Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (dr_panther, 7th_zorro), 1,203 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Delphi Help Please #149108
08/20/07 05:51
08/20/07 05:51
Joined: Jul 2006
Posts: 503
Australia
A
adoado Offline OP

User
adoado  Offline OP

User
A

Joined: Jul 2006
Posts: 503
Australia
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.


Visit our development blog: http://yellloh.com
Re: Delphi Help Please [Re: adoado] #149109
08/20/07 17:15
08/20/07 17:15
Joined: Aug 2007
Posts: 27
M
Memphis Offline
Newbie
Memphis  Offline
Newbie
M

Joined: Aug 2007
Posts: 27
have you tried using form1.canvas.bitmap ?


Meka][Meka || TeamElite Owner Meka-Meka Programmers
Re: Delphi Help Please [Re: Memphis] #149110
08/21/07 05:32
08/21/07 05:32
Joined: Jul 2006
Posts: 503
Australia
A
adoado Offline OP

User
adoado  Offline OP

User
A

Joined: Jul 2006
Posts: 503
Australia
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


Visit our development blog: http://yellloh.com

Moderated by  aztec, Blink, HeelX 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1