GrayScale

The GrayScale method performs the grayscaling of image in the current (selected) imagespace.

Grayscale [startX][,startY][,Width][,Height]

Parameters

startX
Optional. Specifies horizontal coordinate of top left corner of bounding rectangle. The default value is 0.

startY
Optional. Specifies vertical coordinate of top left corner of bounding rectangle. The default value is 0.

Width
Optional. Specifies width of bounding rectangle. The default value is width of imagespace.

Height
Optional. Specifies height of bounding rectangle. The default value is height of imagespace.

Remarks

If you create a paletted image (GIF, paletted PNG) after grayscaling then possibly you need to call the BuildPalette method just before GifImage or PngImage.