This shows you the differences between two versions of the page.
es:imgsave [2016/01/01 22:43] |
es:imgsave [2020/02/28 10:46] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== ImgSave ===== | ||
+ | |||
+ | ==== Formato ==== | ||
+ | **imgsave** // | ||
+ | **imgsave** // | ||
+ | **imgsave** ( // | ||
+ | **imgsave** ( // | ||
+ | |||
+ | ==== Descripción ==== | ||
+ | Guarda el área de gráficos actual en un archivo de imagen.\\ | ||
+ | Por defecto, la imagen se guarda en un archivo con formato Portable Networks Graphics (PNG). Opcionalmente, | ||
+ | |||
+ | En ocasiones las imágenes se guardan con " | ||
+ | < | ||
+ | color white | ||
+ | rect 0, 0, graphwidth, graphheight | ||
+ | </ | ||
+ | |||
+ | ==== Ejemplo ==== | ||
+ | < | ||
+ | color white | ||
+ | rect 0, 0, graphwidth, graphheight | ||
+ | for t = 0 to 100 | ||
+ | color rand()*256, rand()* 256, rand()*256 | ||
+ | rect rand()*graphwidth, | ||
+ | next t | ||
+ | imgsave " | ||
+ | imgsave " | ||
+ | </ | ||
+ | |||
+ | ==== Ver también ==== | ||
+ | [[ImgLoad|ImgLoad]] | ||
+ | |||
+ | ==== Disponible desde la versión ==== | ||
+ | 0.9.6.45 | ||