标题:[求助]关于API(bitblt)
取消只看楼主
编程新贵
Rank: 1
等 级:新手上路
帖 子:98
专家分:0
注 册:2006-8-11
 问题点数:0 回复次数:1 
[求助]关于API(bitblt)
Private Declare Function BitBlt Lib "gdi32" (ByVal hDestDC 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 dwRop As Long) As Long
......
......
For i = 0 To 2
Value(i) = Int(Rnd * 6)
BitBlt picValue(i).hDC, 0, 0, 32, 32, Picture1.hDC, Value(i) * 32, 0, vbSrcCopy
Next

......
......
  前面过程我省略了,大体意思就是将 Picture1的图片随机切割6分,分到3个数组控件picValue中.
但是我不明白的事就是图片的实际width是2880,height是480,而函数中红色部分是32的大小切割,
我不明白bitblt函数中分割方式是以什么为单位的,请高手指教下,谢谢!
搜索更多相关主题的帖子: API bitblt 
2006-09-06 11:31
编程新贵
Rank: 1
等 级:新手上路
帖 子:98
专家分:0
注 册:2006-8-11
得分:0 
好的谢谢
2006-09-06 18:17



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-88382-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.413377 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved