Ver Mensaje Individual
  #7  
Antiguo 16-05-2005
Epachsoft Epachsoft is offline
Miembro
 
Registrado: abr 2005
Posts: 167
Reputación: 20
Epachsoft Va por buen camino
Buenas, realmente no es complicado el capturar la pantalla actual de un computador usando Delphi. Esta es la rutina que da estos resultados...

~~~~~~~~~~
procedure ScreenShot(DestBitmap : TBitmap) ;
var
DC : HDC;
begin
DC := GetDC (GetDesktopWindow) ;
try
DestBitmap.Width := GetDeviceCaps (DC, HORZRES) ;
DestBitmap.Height := GetDeviceCaps (DC, VERTRES) ;
BitBlt(DestBitmap.Canvas.Handle,
0,
0,
DestBitmap.Width,
DestBitmap.Height,
DC,
0,
0,
SRCCOPY) ;
finally
ReleaseDC (GetDesktopWindow, DC) ;
end;
end;



Provecho.

y GO DELPHI!!
Responder Con Cita