*这个实例展示了如何读取一个经过修正的倾斜的条码
- This program demonstrates how to read a slanted
- 2d data code by preprocessing with rectification
- 关闭更新
dev_update_off ()
*关闭窗体
dev_close_window ()
*获取图像并且显示 - Get the image and display it
read_image (Image_slanted, ‘datacode/ecc200/ecc200_to_preprocess_001’)
*打开适合图像尺寸的窗体
dev_open_window_fit_image (Image_slanted, 0, 0, -1, -1, WindowHandle)
*设置显示字体
set_display_font (WindowHandle, 14, ‘mono’, ‘true’, ‘false’)
*设置显示颜色
dev_set_color (‘green’)
*设置线宽
dev_set_line_width (3)
*信息
Message := ‘This program demonstrates how to preprocess’
Message[1] := ‘a slanted 2d data code with rectification’
Message[2] := ‘before reading the data code symbol.’
*显示Message
disp_message (WindowHandle, Message, ‘window’, 12, 12, ‘black’, ‘true’)
*右下角显示’Press F5 TO continue’
disp_continue_message (WindowHandle, ‘black’