create and save images
[1/2] from: rene::villa-cossio::com at: 20-Sep-2001 12:34
Hi Rebol community,
how can I create an JPEG (BMP, PNG, etc) Image. Is there a way to generate
Images and save them??
cu
René
Rene Schrader-Boelsche [rene--villa-cossio--com]
Dellbruecker Steinweg 10 www.villa-cossio.com
D-51069 Cologne +49 (0)221 6809990
[2/2] 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]