CogRectangle Rect = new CogRectangle();
CogImage8Grey myImage = new CogImage8Grey();
//新建一个指定大小的矩形图像
Rect.SetXYWidthHeight(0, 0, this.Inputs.ImageWidth, this.Inputs.ImageHeight);
myImage = Rect.CreateRLE(255, 0).CreateImage8Grey();
//新建园并添加到图像
CogCircle circle = new CogCircle();
circle.SetCenterRadius(this.Inputs.CenterX, this.Inputs.CenterY, this.Inputs.Radius);
circle.CreateRLE(0, 255).DrawIntoImage8Grey(myImage,false,0);
this.Outputs.Output = myImage;//输出到TB图像输出端子
VPP新建指定大小图像,并且在上面绘制一个圆形
最新推荐文章于 2024-05-14 09:19:48 发布