3个回答
展开全部
用Clipboard.SetData()可以将图片放入剪贴板,语法:SetData(Picture As IPictureDisp, [Format])。打开图片文件可以用LoadPicture(),语法:LoadPicture([FileName], [Size], [ColorDepth], [X], [Y]) As IPictureDisp。用StretchBlt()缩放图片,声明:
Declare Function StretchBlt Lib "gdi32" Alias "StretchBlt" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal nSrcWidth As Long, ByVal nSrcHeight As Long, ByVal dwRop As Long) As Long
Declare Function StretchBlt Lib "gdi32" Alias "StretchBlt" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal nSrcWidth As Long, ByVal nSrcHeight As Long, ByVal dwRop As Long) As Long
追问
声明必须有?
追答
StretchBlt是API函数,声明当然有,且必须。
2012-01-24
展开全部
Private Declare Function icePub_imgFileToClipboard Lib "icePubDll.dll" (ByVal strImgFilename As String) As Integer
Dim a2 As Integer
a2 = icePub_imgFileToClipboard("d:\d.png")
Dim a2 As Integer
a2 = icePub_imgFileToClipboard("d:\d.png")
追问
这是打开一个图片文件然后拷贝到剪贴板?
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
复制呗 选中要复制的图片 同时按ctrl+c就可以了
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询