- gen_image_const (Image, 'byte', 512, 512)
- dev_set_draw ('margin')
- dev_get_window (WindowHandle)
- * draw_rectangle2 (WindowHandle, Row, Column, Phi, Length1, Length2)
- Row:=251.916
- Column:=272.396
- Phi:=0.265131
- Length1:=160.222
- Length2:=66.25
- gen_rectangle2 (Rectangle, Row, Column, Phi, Length1, Length2)
- get_region_points (Rectangle, Rows, Columns)
- tuple_union (Columns, Columns, Union)
- step:=50
- gen_empty_obj (EmptyObject)
- for index:=1 to 5 by 1
- gen_rectangle2 (Rectangle1, Row, Union[index*step], Phi+rad(90), Length1, 5)
- intersection (Rectangle1, Rectangle, RegionIntersection)
- concat_obj (EmptyObject, RegionIntersection, EmptyObject)
- endfor
- dev_display (Image)
- dev_display (Rectangle)
- dev_display (EmptyObject)
复制代码 |