更新时间:2023-01-06 08:31:22
你好,我找到了解决办法。
在图形中我更改了 CompositingMode ,它确定何时在另一个上绘制多边形,它被覆盖而不是叠加。
hello, I found the solution.
In graphics I changed the CompositingMode that determines when to paint a polygon on the other it is overwritten and not superimposed.
Bitmap img = new Bitmap( 200, 200 );
Graphics imgGraph = Graphics.FromImage( img );
imgGraph.CompositingMode = System.Drawing.Drawing2D.CompositingMode.SourceCopy;
imgGraph.FillPolygon( Brushes.Red, Points1 );
imgGraph.FillPolygon( Brushes.Transparent, Points2 );
这就是所有人!
That''s all folks!