ふらっとC#,C♯,C#(初心者用) Part67
■ このスレッドは過去ログ倉庫に格納されています
0285280
2010/12/26(日) 19:22:33Graphics g = pictureBox1.CreateGraphics();
GraphicsPath GP = new GraphicsPath();
GP.AddString("□", new FontFamily("MS UI Gothic"), (int)FontStyle.Regular, 100.0f, new Point(100, 0), new StringFormat());
GP.AddRectangle(new Rectangle(20, 20, 60, 60));
GP.AddRectangle(new Rectangle(10, 10, 80, 80));
GP.FillMode = FillMode.Winding;
g.FillPath(Brushes.Black, GP);
//g.DrawPath(Pens.Black, GP);
こんな感じ。
パスで自由に図形描けるようにしていて、
Windingモードでも塗りつぶされない図形は何が違うのか知りたかったのです
■ このスレッドは過去ログ倉庫に格納されています