Subtract

Syntax

Document.Subtract ( OtherImage )

Parameters

Document OtherDocument - another document object accessible to the script

or:

String OtherDocument - the DisplayName associated with another document

Returns

Nothing

Remarks

Subtracts OtherDocument from this image on a pixel-by-pixel basis. The resulting values are clipped at zero; pixel values are never allowed to be negative. For color images, each plane of OtherDocument is subtracted from the corresponding plane of this document. Both images must be the same type (monochrome or color). If the images are of different sizes, only the region of their intersection, starting at the top left corner, is affected.

OtherDocument can be specified either as a Document object, or as a string giving the display name (window title) of a document already open in MaxIm DL.

This method is equivalent to the Subtract operation in the Pixel Math command.