snap shot of actual screen.

Posted By: Realspawn

snap shot of actual screen. - 12/21/16 11:03

What would be the best way to make a screenshot during game of
a part of the screen and save it as an actual picture ? So not a full screenshot but a given part of it ?

any example will be helpfull or a hint in the right direction.
Posted By: Reconnoiter

Re: snap shot of actual screen. - 12/21/16 11:38

Hi,

What I did was using bmap_for_screen and than bmap_blitpart and bmap_save laugh

(also you can just use (re)set(obj, show); to hide or show panels / interface elements right before/after taking the screenshot, like many other games do)
Posted By: Realspawn

Re: snap shot of actual screen. - 12/21/16 11:47


function grab_screen() {

file_for_screen("shot.png",123);
}

this is all needed to create an actuall screen shot so i guess it should have some coordinates to take only part grin
Posted By: Reconnoiter

Re: snap shot of actual screen. - 12/21/16 12:33

No I dont think that it is possible with file_for_screen, besides bmap_for_screen allows you to immediately alter the bmap/image instead of needing to open it again which is needed when going the file_for_screen route iirc.
Posted By: Realspawn

Re: snap shot of actual screen. - 12/22/16 00:28

your right I gues i have to study this some more its the last thing
i need to finish a small application laugh
© 2024 lite-C Forums