level 1
两张图片,A图片,B图片,
两张图片基本上相似,都有文字存在
for width=0 to picture1.scalewidth
for height=0 to picture1.scaleheight
if picture1.point(width,height)<>picture2.point(width,height) then
s=s+1
end if
next
next
x=1-s/(width*height)
以上比较图片不同就是太慢了.有没有更有效率的比较方法,,
跪求....
2022年07月30日 18点07分
1
level 13
GetDIBits函数一次性读取所有像素颜色值,再比较就快很多倍了
2022年07月31日 01点07分
2
读取出来是一个数组吗,再比较?
2022年07月31日 10点07分
@zcldjm 是的,具体网上搜索有函数的使用说明
2022年08月08日 13点08分