Gamestudio Links
Zorro Links
Newest Posts
SGT_FW
by Aku_Aku. 11/30/26 08:19
Removing outliers from files
by JeyKey II. 11/29/26 10:01
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (EvanTJ, Dbat, JeyKey II), 5,456 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 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 | 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