Prev Next image

Displaying Graphical Images

Syntax
See Also
Purpose
cmd
file_in
file_out
Example

Syntax
$cmd%file_in%$$
$cmd%file_in%file_out%$$

See Also
getting started , verbatim

Purpose
These commands include the picture in the input file specified by file_in . Both leading and trailing white space in file_in is ignored and there cannot be any $ characters in file_in . The argument
     %
file_in%file_out%
is a delimiter sequence .

cmd
The command cmd must be either image or icon. The image command is intended for use with large pictures and centers a picture on its own line. The icon command is intended for use with small pictures and includes a picture in the current text line.

file_in
The default extension for file_in is .gif; i.e., if there is no dot (.) characters in file_in , the extension .gif is automatically added to file_in . The extensions .htm and .xml (with out regard to case) cannot be used for these file names. Leading and trailing white space in file_in is ignored.

file_out
If file_out is present, it is a local file name, with out any directories, where the file will be stored. Otherwise file_in , with out any directories, is used for file_out . This specifies the file name in the web site and must be different for each image and icon command. It must have the same file extension as file_out . Leading and trailing white space in file_out is ignored.

Example
The following input
 
     $pre

     $$
     $image%omh/image/run.gif% image_run.jpg%$$
     $pre

     $$
displays the a screen capture corresponding to the June 15, 2001 version of the OMhelp section Running The OMhelp program as displayed by Netscape. Note that image has been added to the name incase another section stores a different file with the name run.gif. (This is not necessary when all the image files come from the same directory.)



The following input
 
     $center
     $table
     $icon omh/image/noteIcon$$ $cend notebook icon $rend
     $icon omh/image/dosIcon$$  $cend dos command icon
     $tend
     $$
displays the following
notebook icon
dos command icon

Input File: omh/image.omh