ImgSave

Format

imgsave filename
imgsave filename, type
imgsave ( filename )
imgsave ( filename, type )

Description

Save the current Graphics Output Window to an image file.
By default the image is saved as a Portable Networks Graphics (PNG) file. You may optionally specify the image type as a “BMP”, “JPG”, “JPEG”, or “PNG”.

Sometimes images will be saved with “black” filling where the screen was undrawn. This is caused by the CLG statement setting the background to the color “clear” (transparent). When the image is saved the transparency is changed to black. Change your CLG statement to the following:

color white
rect 0, 0, graphwidth, graphheight

Example

color white
rect 0, 0, graphwidth, graphheight
for t = 0 to 100
   color rand()*256, rand()* 256, rand()*256
   rect rand()*graphwidth, rand()*graphheight,rand()*graphwidth, rand()*graphheight
next t
imgsave "testimgsave1.png"
imgsave "testimgsave2.jpg", "jpg"

See Also

New To Version

0.9.6.45

 
en/imgsave.txt · Last modified: 2010/10/29 05:03 by renejm
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki