1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

C# : Brushes型とColor型の変換

Posted at

Brushes型とColor型の変換

new SolidColorBrush(Color );

で変換できるはずだが・・・

SolidColorBrushが見つからない

多分、NET6より前とかはできたんじゃないかな・・・

解決

var color = new System.Drawing.SolidBrush(f3_text_color);

g.FillPolygon(color, offset_polygon(ps1, x, y), FillMode.Winding);

これは通った!

new System.Drawing.SolidBrush(Color)とすれば変換できるみたいです。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?