Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
4 registered members (NewbieZorro, Grant, TipmyPip, AndrewAMD), 13,346 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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 | 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