Divide

Syntax

Document.Divide ( OtherDocument )

Parameters

Document OtherDocument - another document object accessible to the script

or:

String OtherDocument - the DisplayName associated with another document

Returns

Nothing

Remarks

Divides this image by OtherDocument on a pixel-by-pixel basis. Pixels in OtherDocument which have the value zero (0) are treated as if they were one (1), that is, the corresponding pixel in this document is left unchanged. For color images, each plane of this document is divided by the corresponding plane of OtherDocument. 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 Divide operation in the Pixel Math command.