WindowLevel example for Access 2.0

This example converts a bitmap to 12-bit grayscale and then performs window leveling on the four most significant bits of the image.

    Me![LEAD1].Object.Grayscale 12    'Grayscale image to 12-bit

    Me![LEAD1].Object.LevelLowBit = 8 ' use 4 most significant bits

    Me![LEAD1].Object.LevelHighBit = 11

    Me![LEAD1].Object.WindowLevel