xadd

[ XITE Reference Manual | XITE home ]

Contents


Name

xadd - add two BIFF images and display under X11

Syntax

xadd [<option>...] <inimage-1> <inimage-2> [<outimage>]

Description

xadd calculates the pixelwise weighted sum of two images. The weight is controlled by a scrollbar. One or both images may be negated.

Options

xadd supports all standard X Toolkit command line arguments (see X(1)) as well as the XITE ximage(3) toolkit command line arguments.

Restrictions

All images must be of equal size.

Resources

In order to specify resources, it is useful to know the hierarchy of the widgets which compose xadd. In the notation below, indentation indicates hierarchical structure.

The widgets of class XfwfButton and XfwfToggle can be replaced by class Command and Toggle (from the Athena widget set) by using the ximage(3) option -widgetset or corresponding application resource.

xadd (class XAdd)

 imageShell         (class TopLevelShell)
   imageForm        (class ImageForm)
     image          (class Image)
     menubar        (class XfwfMenuBar)
       colors       (class XfwfPullDown)
       tools        (class XfwfPullDown)
       options      (class XfwfPullDown)
 xadd control panel (class TopLevelShell)
   topContainer     (class Form)
     scrollabel     (class Label)
     ximagescroll   (class Scrollbar)
     Quit           (class XfwfButton)
     Negate-1       (class XfwfToggle)
     Negate-2       (class XfwfToggle)
     Prev           (class XfwfButton)
     Next           (class XfwfButton)
     Save           (class XfwfButton)
 colorsmenu         (class SimpleMenu)
   menuLabel        (class SmeBSB)
   backgroundcol    (class SmeBSB)
   Work-map         (class SmeBSB)
   colorsep         (class SmeLine)
   White - 256      (class SmeBSB)
   Black - 256      (class SmeBSB)
   Red - 256        (class SmeBSB)
   Green - 256      (class SmeBSB)
   Blue - 256       (class SmeBSB)
   Spectrum - 256   (class SmeBSB)
   Hue - 256        (class SmeBSB)
   Rainbow - 256    (class SmeBSB)
 toolsmenu          (class SimpleMenu)
   menuLabel        (class SmeBSB)
   imageinfo        (class SmeBSB)
   histogram        (class SmeBSB)
   slice            (class SmeBSB)
 optionsmenu        (class SimpleMenu)
   menuLabel        (class SmeBSB)
   optionsmenusep   (class SmeLine)
   optionsmenuentry (class SmeBSB)
   optionsmenuentry (class SmeBSB)
   optionsmenuentry (class SmeBSB)
   optionsmenusep   (class SmeLine)
   optionsmenuentry (class SmeBSB)
   optionsmenuentry (class SmeBSB)
   optionsmenuentry (class SmeBSB)

See also

addw(1), ximage(3), Image(3)

Files

$XITE_HOME/etc/app-defaults/XAdd

Author

Otto Milvang

Revised

Svein Bøe

Examples

 xadd img1 img2 img3

Id

$Id: xadd.c,v 1.52 1997/07/11 14:18:31 svein Exp $