Description

Performs a logical NAND between 2 images or an image and a number.

Return Type

A McImage object.  

The resulting McImage.

Syntax

object.Nand (vOperand2, [vOperand1])

The Nand Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McOperations.
vOperand2Required. A Variant value.

Second operand of the operation: McImage, or number (array for color images).

vOperand1Optional. A Variant value.

Optional first image operand (operator applies to parent image when parameter is omitted), or a number (an array for color images).

Remarks

A conversion is performed on vOperand2 so that it has the same type as the source image. The conversion rules are defined by the value of the Conversion property.

The result of the following:

Not ( Parent image [or vOperand1] And vOperand2 )

is stored in the parent image or vOperand1 if there is no parent.

Exceptions

The exception mceINVALIDARG (E_INVALIDARG) will be thrown if one of the parameters is invalid.