Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (vicknick), 1,413 guests, and 13 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 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