CImage:KwdExists


The KwdExists method tests whether a keyword exists in the image header.

Syntax

bSuccess = CImage:KwdExists( sKwd )

where

    sKwd is the name of the keyword to be tested.

    bSuccess returns true if the keyword exists, otherwise false.

  

This method returns true if an instance of the named keyword is found in the image header. It does not return information about the contents of the keyword of the location of the keyword.

Example

Suppose a CImage named I exists and contains keyword "DARKTIME". The following script informs the script whether the keyword exists in image I:

if ( I:KwdExists("DARKTIME") ) then

-- test if keyword is in the header

  --

-- do something

end

 

Related Topics

CImage class