*加載圖片
read_image(Image,'monkey')
*生成矩形區域 gen_rectangle1(Rectangle,100.0,100.0,300.0,300.0) * paint a white rectangle
*在圖片的對應區域的位置,把所有像素點都設置為某個像素值,這里是設置為255.0,即白色 paint_region(Rectangle,Image,ImageResult,255.0,'fill')
==================================================
paint_region ( Region, Image : ImageResult : Grayval, Type : )
函數作用:
繪制region到image內
參數列表:
Region(in):繪入圖像內的區域
Image(in):包含繪入區域的圖像
ImageResult(out):結果圖像
Grayval(in):期望的區域灰度值
Type(in):所繪區域類型,如填充或邊界