save-graphic-image ( image path -- )


Vocabulary
images.loader

Inputs
imagean image
patha string


Outputs
None

Word description
Saves a (graphic) image to disk. The extension of the path string is used to select which save format to save the image with.

Examples
This example renders a text on an image and then saves the image to /tmp/foo.jpg
USING: fonts images.loader ui.text ; monospace-font "Hello, there!" string>image drop "/tmp/hello.jpg" save-graphic-image


Definition