Gamestudio Links
Zorro Links
Newest Posts
Zorro version 3.0 prerelease!
by TipmyPip. 02/24/26 08:49
ZorroGPT
by TipmyPip. 02/23/26 21:52
WFO Training with parallel cores Zorro64
by Martin_HH. 02/23/26 15:29
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
4 registered members (TipmyPip, VoroneTZ, Quad, AndrewAMD), 5,309 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 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