Unconfigured Ad Widget

Collapse

Anúncio

Collapse
No announcement yet.

Comando de tirar foto

Collapse
X
 
  • Filter
  • Tempo
  • Show
Clear All
new posts

  • Font Size
    #1

    Pascal Comando de tirar foto

    Se souber quem fez me avisa...


    Coloque este comando em um button
    var
    DCDesk: HDC;
    bmp: TBitmap;

    begin
    bmp := TBitmap.Create;
    bmp.Height := Screen.Height;
    bmp.Width := Screen.Width;
    DCDesk := GetWindowDC(GetDesktopWindow);
    BitBlt(bmp.Canvas.Handle, 0 ,0, Screen.Width, Screen.Height, DCDesk, 0, 0, SRCCOPY);
    bmp.SaveToFile(COLOQUE AQUI O ENDEREÇO PRA SALVAR!);
    ReleaseDC(GetDesktopWindow, DCDesk);
    bmp.Free;
    end;
X
Working...
X