HELP!
#1
Posted 24 April 2012 - 11:26 PM
#2
Posted 25 April 2012 - 02:23 AM
#3
Posted 25 April 2012 - 02:46 AM
#4
Posted 25 April 2012 - 02:56 AM
#5
Posted 25 April 2012 - 04:32 PM
No i made a program that lets you draw sprites and backgrounds and i need to let them save as a jpg,png what they made!Do you want a screenshot to be taken of the game screen or do you want to save a sprite you made in the editor?
Edited by Graphic Galore!, 25 April 2012 - 04:34 PM.
#6
Posted 25 April 2012 - 07:10 PM
Once the sprites and backgrounds are drawn onto the screen, you can use these functions to save the resulting on-screen image into a PNG file:No i made a program that lets you draw sprites and backgrounds and i need to let them save as a jpg,png what they made!
screen_save(fname) Saves a png image of the screen in the given filename. Useful for making screenshots.
screen_save_part(fname,x,y,w,h) Saves part of the screen in the given png filename.
Another more flexible method involves drawing the sprites and backgrounds onto a surface, then use these similarly named functions:
surface_save(id,fname) Saves a png image of the surface in the given filename. Useful for making screenshots.
surface_save_part(id,fname,x,y,w,h) Saves part of the surface in the given png filename.
GameGeisha
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











