The usage of this code is as follows
Example:
pos = dm。 FindPicE(0,0,2000,2000," C:\ 1.bmp "," 000000 ",0.9,0)
pos = split(pos," | ")
If int(pos( 1)) > then 0
MessageBox "found"
If ... it will be over.
detailed description
Functional prototype:
String FindPicE(x 1, y 1, x2, y2, picture name, delta color, sim, dir)
Parameter definition:
X 1 integer: the x coordinate of the upper left corner of the area.
Y 1 integer: the y coordinate of the upper left corner of the region.
X2 integer: the x coordinate of the lower right corner of the area.
Y2 integer: the y coordinate of the lower right corner of the area.
Pic_name string: the name of the picture, which can be multiple pictures, such as "test.bmp|test2.bmp|test3.bmp".
Delta_color string: Color cast such as "20 30 40" means that the color cast of RGB is 203040 (here, 16).
Sim double-precision floating-point number: similarity, ranging from 0. 1- 1.0.
Dir integer: search direction 0: left to right, top to bottom 1: left to right, bottom to top 2: right to left, top to bottom 3: right to left, bottom to top.