IsGrayscale example for C++ Builder
This example tests to see if the bitmap is grayscale.
GrayscaleTypes IsGray;
IsGray= LEADRasterView1->Raster->IsGrayscale;
if (IsGray == GRAY_NO)
ShowMessage("Not Grayscale");
else
ShowMessage("Is Grayscale");