WEB开发网
开发学院WEB开发综合 截取屏幕图像 阅读

截取屏幕图像

 2006-02-27 11:43:24 来源:WEB开发网   
核心提示:PRivateDeclareFunctionCreateCompatibleBitmapLib"gdi32"(ByValhdcAsLong,ByValnWidthAsLong,ByValnHeightAsLong)AsLongPrivateDeclareFunctionSelectObjectLib
PRivateDeclareFunctionCreateCompatibleBitmapLib"gdi32"(ByValhdcAsLong,ByValnWidthAsLong,ByValnHeightAsLong)AsLong
PrivateDeclareFunctionSelectObjectLib"gdi32"(ByValhdcAsLong,ByValhObjectAsLong)AsLong

PrivateSubForm_Load()
DimhBitmapAsInteger
Me.AutoRedraw=True
hBitmap=CreateCompatibleBitmap(Me.hdc,0,0)
SelectObjectMe.hdc,hBitmap
EndSub->

Tags:截取 屏幕 图像

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接