This might give you a starting point:
The color depth of a canvas is calculated by multiplying
the number of bits per pixel that is required for a
given canvas by the number of planes the canvas uses.
You can find the color depth of a canvas in by using the
following code:
TotalNumBitsPerPixel :=
GetDeviceCaps(Canvas.Handle, BITSPIXEL) *
GetDeviceCaps(Canvas.Handle, PLANES)
Also look at the Win32S helpfile for more info.
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz