This shows you the differences between two versions of the page.
pt:imgsave [2020/02/28 10:46] |
pt:imgsave [2020/02/28 10:46] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== ImgSave ===== | ||
+ | |||
+ | ==== Formato ==== | ||
+ | **imgsave** // | ||
+ | **imgsave** // | ||
+ | **imgsave** ( // | ||
+ | **imgsave** ( // | ||
+ | |||
+ | ==== Descrição ==== | ||
+ | Guarda a imagem da janela grafica para um ficheiro de imagem.\\ | ||
+ | Por defeito é assumido o formato (PNG). Como opção há também a possibilidade de gravar em " | ||
+ | |||
+ | Por vezes as imagens serão guardadas como "fundo negro" onde a janela não foi desenhada.Isto deve-se à instrução [[CLG|CLG]] establece como cor de fundo a cor " | ||
+ | |||
+ | < | ||
+ | color white | ||
+ | rect 0, 0, graphwidth, graphheight | ||
+ | </ | ||
+ | |||
+ | ==== Exemplo ==== | ||
+ | < | ||
+ | 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 também ==== | ||
+ | [[ImgLoad|ImgLoad]] | ||
+ | |||
+ | ==== Disponivel desde ==== | ||
+ | 0.9.6.45 | ||