CImage:KwdDelete CImage:KwdGetDmsEx

CImage:KwdExists


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

Syntax

bResult = CImage:KwdExists( sKwd )

    sKwd is the name of the keyword to be tested.

    If the keyword exists, the method returns true.

    Otherwise, false is returned.

Remarks

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 fragment informs the script whether the keyword exists in imageI:

 

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

-- test if keyword is in the header

  ...

-- do something

end

 

Related Topics

CImage