ConvertToGrayScale()

Description

Converts a specified image to gray scale.

Syntax

.ConvertToGrayScale(sImageIndex);

Parameters

<short> sImageIndex: specifies the index of the image to be converted. The index is 0-based.

Return value

bool

true indicates success. false indicates failure.

When false is returned, check ErrorCode or ErrorString for error information.

Remarks

Normally it only makes sense to convert a colored image to grey scale.