Скриншот экрана
- procedure GetScreen(FileName: String);
- var
- DC: HDC;
- begin
- DC := GetDC(0);
- with TBitmap.Create do
- begin
- try
- LoadFromDevice(DC);
- SaveToFile(FileName);
- finally
- ReleaseDC(0, DC);
- Free;
- end;
- end;
- end;
- begin
- GetScreen('001.bmp');
- end.
Скриншот экрана
|
Реклама |