*difference的运算逻辑 *先计算两个区域的交集 *1.如果有交集结果为第一个区域减去交集 *2.如果没有交集结果为第一个区域
- 第一种效果
read_image (Image, printer_chip/printer_chip_01)dev_set_color (red)gen_rectangle1 (Rectangle, 100, 100, 200, 200)dev_set_color(blue)gen_rectangle1 (Rectangle1, 150, 150, 250, 250)dev_set_color (green)difference (Rectangle, Rectangle1, RegionDifference)dev_display(RegionDifference)
- 第二种效果图
read_image (Image, printer_chip/printer_chip_01)dev_set_color (red)gen_rectangle1 (Rectangle, 100, 100, 150, 150)dev_set_color(blue)gen_rectangle1 (Rectangle1, 50, 50, 250, 250)dev_set_color (green)difference (Rectangle, Rectangle1, RegionDifference)dev_display(RegionDifference)
- 第三种效果图
read_image (Image, printer_chip/printer_chip_01)dev_set_color (red)gen_rectangle1 (Rectangle, 50, 50, 250, 250)dev_set_color(blue)gen_rectangle1 (Rectangle1, 100, 100, 150, 150)dev_set_color (green)difference (Rectangle, Rectangle1, RegionDifference)dev_display(RegionDifference)
- 第四种效果图
read_image (Image, printer_chip/printer_chip_01)dev_set_color (red)gen_rectangle1 (Rectangle, 100, 100, 150, 150)dev_set_color(blue)gen_rectangle1 (Rectangle1, 200, 200, 250, 250)dev_set_color (green)difference (Rectangle, Rectangle1, RegionDifference)dev_display(RegionDifference)