? getBitsPerPixel() FUNCTION GetBitsPerPixel * nBitsPerPixel returns the color depth * 8 = 256 Color * 16 = High Color (64K) * 24 or 32 are TrueColor modes. * There are other values; these are the most common ones encountered. DECLARE INTEGER GetDC IN WIN32API INTEGER hWnd DECLARE INTEGER GetActiveWindow IN WIN32API DECLARE INTEGER GetDeviceCaps IN WIN32API INTEGER hDC, INTEGER nIndex DECLARE INTEGER ReleaseDC IN WIN32API INTEGER hWnd, INTEGER hDC #DEFINE BITSPIXEL 12 LOCAL nDC, nBitsPerPixel nDC = GetDC(GetActiveWindow()) nBitsPerPixel = GetDeviceCaps(nDC, BITSPIXEL) =ReleaseDC(GetActiveWindow(),nDC) RETURN nBitsPerPixel ENDFUNC