gif. Encoding objects of class image in GIF format

^image.gif[]
^
image.gif[file name]

Used to encode objects of class image created by Parser in GIF format.
File name will be passed to visitor if $response:download is used.

Important notice: as a result, this method creates an object of class
file, not image!

Besides, it is important to keep in mind that colors are taken from the palette, and when there are no colors left in the palette, nearest shades will be picked up. If you create a complex graphics, especially with background loaded in advance, you must keep in mind the sequence of colors captured.


Example
$square[^image::create(100;100;0x000000)]
$
response:body[^square.gif[]]

Browser will display a black 100x100 pixels square.


Copyright © 1997–2021 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 20.09.2007