Check out the API function EnumDisplaySettings
I found this snippet of code:
procedure TForm1.FormCreate(Sender: TObject);
var
i : Integer;
DevMode : TDevMode;
begin
i:=0;
while EnumDisplaySettings(nil,i,DevMode) do begin
with Devmode do
ListBox1.Items.Add
(Format('%dx%d %d Colors',
[dmPelsWidth,dmPelsHeight,1 shl dmBitsperPel]));
Inc(i);
end;
end;
It puts the display settings in a listbox, and combining it with screen.width and screen.height it must be possible to detect the current color mode
S. van Els
SAvanEls@cq-link.sr