|
- <font size="3">*图像类型
- read_image (Image1, 'printer_chip/printer_chip_01') 图像
- gen_rectangle1 (Rectangle, 30, 20, 100, 200) 区域
- gen_rectangle2_contour_xld (Rectangle1, 300, 200, 0, 100.5, 20.5) 轮廓
- get_image_size (Image1, Width, Height) 获取图像尺寸
- *控制类型
- str:='thinger'
- num:=123
- num2:=200
- val:=123.456
- array:=[1,2,3,4,5]
- dev_get_window (WindowHandle) 获取窗体句柄
- *运算符
- if(num<200)
-
- stop ()
-
- else
- stop ()
-
- endif
- if(num>123 and num2<300)
- stop ()
- else
- stop ()
- endif
- if(num>123 or num2<300)
- stop ()
- else
- stop ()
- endif
- if(not(num>123 or num2<300))
- stop ()
- else
- stop ()
- endif
- *控制流
- for Index := 1 to 5 by 1
- num:=num+1
- endfor
- while (num>100)
-
- num:=num-1
-
- endwhile
- switch (num)
- case 1:
- break
- case 100:
- stop ()
- endswitch
- for Index1 := 1 to 5 by 1
- continue
- endfor</font>
复制代码
|
|