for x1 = 1 to A的高度
for y1 = 1 to A的宽度 - B的宽度
if 像素A(x1,y1) = 像素B(1 ,1) Then
for x2 = 1 to B的高度
for y2 = 1 to B的宽度
if 像素A(x1+x2, y1+y2) <> 像素B(x2, y2) Then goto next_serch
next x2
next y2
msgbox "找到了"
exit sub
end if
next_serch:
next x1
next y1
msgbox "没找到"