b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

bitblt sdk_bitblt_c# bitblt(2)

电脑杂谈  发布时间:2017-02-12 05:04:37  来源:网络整理

Height := Bottom - Top;

ScreenDC := GetDC( 0 );

try

BitBlt( Canvas.Handle, 0, 0, Width, Height, ScreenDC,

Left, Top, SRCCOPY );

finally

ReleaseDC( 0, ScreenDC );

end;

end;

end;

{==============================================================================}

{ Use this to capture the entire screen... }

function CaptureScreen: TBitmap;

{==============================================================================}

begin

with Screen do

bitblt sdk_bitblt_c# bitblt

Result := CaptureScreenRect( Rect( 0, 0, Width, Height ));

end;

{==============================================================================}

{ Use this to capture just the client area of a form or control... }

function CaptureClientImage( Control: TControl ): TBitmap;

{==============================================================================}

begin

with Control, Control.ClientOrigin do

Result := CaptureScreenRect( Bounds( X, Y, ClientWidth,

ClientHeight ));

end;

{==============================================================================}

{ Use this to capture an entire form or control... }

function CaptureControlImage( Control: TControl ): TBitmap;

{==============================================================================}

begin

with Control do

if Parent = nil then

Result := CaptureScreenRect( Bounds( Left, Top, Width,

Height ))

else

with Parent.ClientToScreen( Point( Left, Top )) do

Result := CaptureScreenRect( Bounds( X, Y, Width,

Height ));

end;

{==============================================================================}

{ Use this to capture an entire form or control paased as an API hWnd... }

function CaptureWindowImage( Wnd: HWND ): TBitmap;

{==============================================================================}

var

R: TRect;

begin

GetWindowRect(Wnd, R);

Result := CaptureScreenRect(R);

end;

end.


本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-31929-2.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    • 太祖朱温
      太祖朱温

      他说的不是指人类

    • 伊灿灿
      伊灿灿

      #给烊烊520#1128生日评论集体向520万刷起来#护千玺到远方##易烊千玺真的很不错#

    热点图片
    拼命载入中...