User Tools

Site Tools


en:imgsave

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:imgsave [2016/08/12 21:26]
admin
en:imgsave [2016/08/14 15:51]
admin
Line 4: Line 4:
 **imgsave** [[stringexpressions|file_name]]\\ **imgsave** [[stringexpressions|file_name]]\\
 **imgsave** ( [[stringexpressions|file_name]] )\\ **imgsave** ( [[stringexpressions|file_name]] )\\
-**imgsave** [[stringexpressions|file_name]], //type//\\ +**imgsave** [[stringexpressions|file_name]], [[stringexpressions|image_type]]\\ 
-**imgsave** ( [[stringexpressions|file_name]], //type// )+**imgsave** ( [[stringexpressions|file_name]], [[stringexpressions|image_type]] )
  
 ==== Description ==== ==== Description ====
 Save the current Graphics Output Window to an image file.\\ 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". 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".
 +
 +{{page>imagetypeconstants}}
  
 Sometimes images will be saved with "black" filling where the screen was undrawn.  This is caused by the [[CLG|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: Sometimes images will be saved with "black" filling where the screen was undrawn.  This is caused by the [[CLG|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:
 <code> <code>
-color white +clg white
-rect 0, 0, graphwidth, graphheight+
 </code> </code>
  
 ==== Example ==== ==== Example ====
 <code> <code>
-color white +clg white
-rect 0, 0, graphwidth, graphheight+
 for t = 0 to 100 for t = 0 to 100
    color rand()*256, rand()* 256, rand()*256    color rand()*256, rand()* 256, rand()*256
Line 34: Line 34:
 ==== History ==== ==== History ====
 |0.9.6.45|New To Version| |0.9.6.45|New To Version|
 +|1.99.99.58|Added Named Constants|
  
en/imgsave.txt · Last modified: 2020/02/28 10:46 (external edit)