13
13
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="xs2gif" xml:lang="en">
15
<refname>xs2gif</refname>
16
<refpurpose>Export graphics to GIF.</refpurpose>
19
<title>Calling Sequence</title>
20
<synopsis>xs2gif(win_num,file_name)
25
<title>Arguments</title>
30
<para>integer, id of the figure to export.</para>
36
<para>handle of the figure to export.</para>
40
<term>file_name</term>
42
<para>string, name of the exported file.</para>
48
<title>Description</title>
50
<literal>xs2gif</literal> exports the display of a graphic window into a GIF file.
52
<para>To convert a sequence of "GIF" files to an animated GIF file one can
53
use the "convert" program for ImageMagic
54
(http://www.imagemagick.org/)
56
<para>For example if one has generated a sequence of Gif files named
57
<literal>img*.gif</literal> it is possible to build an animated Gif file
60
<programlisting role=""><![CDATA[
15
<refname>xs2gif</refname>
16
<refpurpose>Export graphics to GIF.</refpurpose>
19
<title>Calling Sequence</title>
20
<synopsis>xs2gif(win_num,file_name)
25
<title>Arguments</title>
30
<para>integer, id of the figure to export.</para>
36
<para>handle of the figure to export.</para>
40
<term>file_name</term>
42
<para>string, name of the exported file.</para>
48
<title>Description</title>
50
<literal>xs2gif</literal> exports the display of a graphic window into a GIF file.
52
<para>To convert a sequence of "GIF" files to an animated GIF file one can
53
use the "convert" program for ImageMagic
54
(http://www.imagemagick.org/)
56
<para>For example if one has generated a sequence of Gif files named
57
<literal>img*.gif</literal> it is possible to build an animated Gif file
60
<programlisting role=""><![CDATA[
61
61
convert -delay 10 img*.gif anim.gif
62
62
]]></programlisting>
65
<title>Examples</title>
66
<programlisting role="example"><![CDATA[
65
<title>Examples</title>
66
<programlisting role="example"><![CDATA[
70
70
xs2gif(0,'foo.gif');
71
71
xs2gif(gcf(),'foo.gif');
72
72
]]></programlisting>
74
<refsection role="see also">
75
<title>See Also</title>
76
<simplelist type="inline">
78
<link linkend="xs2bmp">xs2bmp</link>
81
<link linkend="xs2jpg">xs2jpg</link>
84
<link linkend="xs2png">xs2png</link>
87
<link linkend="xs2ppm">xs2ppm</link>
90
<link linkend="xs2eps">xs2eps</link>
93
<link linkend="xs2pdf">xs2pdf</link>
96
<link linkend="xs2svg">xs2svg</link>
99
<link linkend="xs2ps">xs2ps</link>
102
<link linkend="xs2emf">xs2emf</link>
74
<refsection role="see also">
75
<title>See Also</title>
76
<simplelist type="inline">
78
<link linkend="xs2bmp">xs2bmp</link>
81
<link linkend="xs2jpg">xs2jpg</link>
84
<link linkend="xs2png">xs2png</link>
87
<link linkend="xs2ppm">xs2ppm</link>
90
<link linkend="xs2eps">xs2eps</link>
93
<link linkend="xs2pdf">xs2pdf</link>
96
<link linkend="xs2svg">xs2svg</link>
99
<link linkend="xs2ps">xs2ps</link>
102
<link linkend="xs2emf">xs2emf</link>