为何不看看已答问题?
靠cpp赚点分!
var
Fullscreen:Tbitmap;
FullscreenCanvas:TCanvas;
dc:HDC;
begin
timer1.Enabled:=false;
Fullscreen := TBitmap.Create; // create a bimap to save picture
Fullscreen.Width := screen.width;
Fullscreen.Height := screen.Height;
DC := GetDC (0); // get screen dc
FullscreenCanvas := TCanvas.Create; //create screen canvas
FullscreenCanvas.Handle := DC;
Fullscreen.Canvas.CopyRect (Rect (0, 0, screen.Width, screen.Height), fullscreenCanvas,
Rect (0, 0, Screen.Width, Screen.Height));
FullscreenCanvas.Free; //free screen canvas
ReleaseDC (0, DC);
//*******************************
image1.picture.Bitmap:=fullscreen;//哈哈,拿到屏幕了!
image1.Width:=fullscreen.Width;
image1.Height:=fullscreen.Height;
fullscreen.free; //free bitmap