Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
2 registered members (Quad, AndrewAMD), 1,007 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Something between file_for_screen and bmap_for_screen #206231
05/12/08 08:52
05/12/08 08:52
Joined: May 2006
Posts: 133
ME
Mysterious Offline OP
Member
Mysterious  Offline OP
Member

Joined: May 2006
Posts: 133
ME
Hi there

I want to take a screen shot in my game but I want to manage the result image before I save it to the hard disk,

I used "file_for_screen" in first place but I have to call wait(1) before I can handle the result image...
so
it goes like this:
file_for_screen(whatsoever)
wait(1)
bmap_create

so after all I use two "slow" function and a wait() between them that make the game halt for a second....

I need a function that return a BMAP in first place so I can manage the image and after I finished I can save the image when the player press save game

.................
I tried to use the bmap_for_screen but it only work with 16bit (I need 32bit) and BMP or PCX (I need PNG)

so after this long description of the problem... which I hope that I made it clear

is there anyway to grab an image of the screen that I can save it later as 32bit PNG....

sorry for my bad English
any help is appreciated

Mysterious \:\)

Re: Something between file_for_screen and bmap_for_screen [Re: Mysterious] #206416
05/13/08 12:19
05/13/08 12:19
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
use a render target for one frame.

Re: Something between file_for_screen and bmap_for_screen [Re: Joey] #206583
05/14/08 13:18
05/14/08 13:18
Joined: May 2006
Posts: 133
ME
Mysterious Offline OP
Member
Mysterious  Offline OP
Member

Joined: May 2006
Posts: 133
ME
Ok, may you provide a simple example of how to use it?

thanks


Moderated by  HeelX, Spirit 

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