IsGrayscale example for Visual Basic

This example tests to see if the bitmap is grayscale.

    Dim IsGray As GrayScaleTypes
    IsGray = LEADRasterView1.Raster.IsGrayScale
    If IsGray = GRAY_NO Then
        MsgBox "Not Grayscale"
    Else
        MsgBox "Is Grayscale"
    End If