SIEDEMO(1) USER COMMANDS SIEDEMO(1)
NAME
siedemo - NCD Simple Imaging Extension (SIE) demonstration
SYNOPSIS
siedemo [-toolkitoption ...] [-option] -in filename
DESCRIPTION
The siedemo program is a sample application using the NCD
SIE Extension. The program is a only a simple interface to
the library calls provided by the extension. It allows for
display, scaling, and rotating bitonal images that are
compressed in CCITT Group 3 and CCITT Group 4 format. The
program does not make use of the image capture capability
provided by the extension.
OPTIONS
Siedemo accepts all of the standard X Toolkit command line
options as well as the options listed below:
-help This option indicates that a brief summary of the
allowed options.
-in filename
This option specifies the name of the file contain-
ing the image to be displayed.
-dpi resolution
This option specifies the resolution of the scanned
image to be displayed. Siedemo will attempt to ini-
tially scale the image such that it appears in its
actual size on the screen.
-pixmap This option indicates that siedemo should maintain a
copy of the image in a pixmap in the X server. This
eliminates transmission and decompression delays
from imaging operations but may require more memory
in the X server.
RESOURCES
This program uses its own View widget. It understands all
of the core resource names and classes.
WIDGETS
In order to specify resources, it is useful to know the
hierarchy of the widgets that compose siedemo. In the nota-
tion below, indentation indicates hierarchical structure.
NCDware 3.1 1
SIEDEMO(1) USER COMMANDS SIEDEMO(1)
The widget class name is given first, followed by the widget
instance name.
SieDemo siedemo
Paned paned
Label info
Box box
Command no-zoom
Command 100-dpi
Box box
Command 200-dpi
Command 300-dpi
Box box
Command rotate-0
Command rotate-90
Box box
Command rotate-180
Command rotate-270
Box box
Toggle pixmap
Command save
Command quit
TopLevelShell sieview
View view
VIEW ACTIONS
Siedemo defines all user interaction through actions. This
allows the user to modify the translation table of any
widget, and bind any event to the new user action. The list
of actions supported by siedemo are:
Close() When used in a View widget, this closes the
view. When all views are closed, the program
exits.
Save() When used in a View widget, the user is
prompted for a filename to save the current
image view. The image is then stored as it
appears on the screen in the same compression
format as the source image.
StartClip() When used in a View widget, this sets the
origin of the rubber band for the clipped
image to the current pointer coordinates.
ResizeClip() When used in a View widget, this sets the
rubber band rectangle so that the clip origin
and current pointer coordinates are in diago-
nally opposite corners.
NCDware 3.1 2
SIEDEMO(1) USER COMMANDS SIEDEMO(1)
EndClip() When used in a View widget, this selects a
subimage to be viewed according to the
current rubber band rectangle.
Rotate(arg) When used in a View widget, this rotates the
subimages according to the argument. The
argument can be a signed integer indicating
the number of steps the image should be
rotated relative to its current rotation, or
the argument can be an absolute rotation.
See the source for more details.
DotsPerInch(resolution)
When used in a View widget, this redisplays
the image as if it were scanned at the reso-
lution given in the argument. If the argu-
ment is zero (0) the image is shown at actual
size.
ENVIRONMENT
DISPLAY to get the default host and display number.
XENVIRONMENT
to get the name of a resource file that overrides
the global resources stored in the RESOURCE_MANAGER
property.
SEE ALSO
X(1), xrdb(1)
COPYRIGHT
Copyright 1990, 1991, 1992, 1993 Network Computing Devices,
Inc.
AUTHOR
Olaf Brandt, Network Computing Devices, Inc.
NCDware 3.1 3