<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
<MAN>
  <LANGUAGE>eng</LANGUAGE>
  <TITLE>driver</TITLE>
  <TYPE>Scilab Function</TYPE>
  <DATE>April 1993</DATE>
  <SHORT_DESCRIPTION name="driver"> select a graphics driver</SHORT_DESCRIPTION>
  <CALLING_SEQUENCE>
    <CALLING_SEQUENCE_ITEM>driver(driver_name)  </CALLING_SEQUENCE_ITEM>
    <CALLING_SEQUENCE_ITEM>current_driver=driver()  </CALLING_SEQUENCE_ITEM>
  </CALLING_SEQUENCE>
  <PARAM>
    <PARAM_INDENT>
      <PARAM_ITEM>
        <PARAM_NAME>driver_name</PARAM_NAME>
        <PARAM_DESCRIPTION>
          <SP>: string, driver to be selected.</SP>
        </PARAM_DESCRIPTION>
      </PARAM_ITEM>
    </PARAM_INDENT>
  </PARAM>
  <DESCRIPTION>
    <P>
    This function is used to select a graphics driver, or with no arguments 
    to get the current graphics driver name.
    Most of the time, a user can ignore this function and change the driver
    by calling high level functions such as <VERB>xbasc</VERB> or <VERB>xbasimp</VERB>.
    The selected driver can be one of the followings:
  </P>
    <DESCRIPTION_INDENT>
      <DESCRIPTION_ITEM label="&quot;X11&quot;">
        <SP>: output to the screen of the computer.</SP>
      </DESCRIPTION_ITEM>
      <DESCRIPTION_ITEM label="&quot;Pos&quot;">
        <SP>: output into Postscript format.</SP>
      </DESCRIPTION_ITEM>
      <DESCRIPTION_ITEM label="&quot;Rec&quot;">
        <SP>: output to the screen of the computer with recording of all the graphics commands. This is the default driver.</SP>
      </DESCRIPTION_ITEM>
      <DESCRIPTION_ITEM label="&quot;Fig&quot;">
        <SP>: output into XFig format. Clipping of objects is not provided in XFig.</SP>
      </DESCRIPTION_ITEM>
      <DESCRIPTION_ITEM label="&quot;GIF&quot;">
        <SP>: output into Gif format based on gd (http://www.boutell.com/gd)</SP>
      </DESCRIPTION_ITEM>
      <DESCRIPTION_ITEM label="&quot;PPM&quot;">
        <SP>: output into PPM format based on gd (http://www.boutell.com/gd)</SP>
      </DESCRIPTION_ITEM>
    </DESCRIPTION_INDENT>
  </DESCRIPTION>
  <SECTION label="Remark">
    <P>
    To convert &quot;GIF&quot; or &quot;PPM&quot; files to other image format or for building animation one can use the &quot;convert&quot; program for ImageMagic (http://www.imagemagick.org/)</P>
    <P>
    For example if one has generated a sequence of Gif files named <VERB>img*.gif</VERB> it is possible to build an animated Gif file (named anim.gif) by</P>
    <VERBATIM>
<![CDATA[
convert -delay 10  img*.gif anim.gif  
   ]]>
    </VERBATIM>
  </SECTION>
  <SEE_ALSO>
    <SEE_ALSO_ITEM>
      <LINK>xtape</LINK>
    </SEE_ALSO_ITEM>
    <SEE_ALSO_ITEM>
      <LINK>xbasc</LINK>
    </SEE_ALSO_ITEM>
    <SEE_ALSO_ITEM>
      <LINK>xbasimp</LINK>
    </SEE_ALSO_ITEM>
  </SEE_ALSO>
  <AUTHOR>J.Ph.C.  </AUTHOR>
</MAN>
