dankeee
Nur dann sollte das so eigenglich klappen oder?
Delphi-Quellcode:
procedure TForm1.Button1Click(Sender: TObject);
var
DCanvas: TCanvas;
DHandle: HWND;
begin
DHandle:=GetDC(0);
if DHandle<>0 then
begin
try
DCanvas:=TCanvas.Create;
try
if DCanvas.Pixels[5, 5] = clWhite
then ShowMessage ('x');
finally
DCanvas.Free;
end;
finally
if ReleaseDc(0, DHandle)<>1 then
RaiseLastOSError;
end;
end
else
RaiseLastOSError;
end;