[REBOL] Re: create and save images
From: arolls:idatam:au at: 24-Sep-2001 19:03
> how can I create an JPEG (BMP, PNG, etc) Image. Is there a way to generate
> Images and save them??
You can create an image like this:
img: to-image layout [button]
or this:
img: to-image layout [image %your-image-file.jpg]
Save it like this:
save/png %afile.png img
Read it back in like this:
view layout [image %afile.png]
Note: Layout automatically puts a border. Set the border
size to 0x0 like this:
view layout [origin 0 button]