web-dev-qa-db-ja.com

System.Windows.Media.ColorをSystem.Drawing.Colorに変換する

private void DialogFont_Load(object sender, EventArgs e)
{
    LoadInstalledFonts();
    SetupInitialDialogSelections();
    lblPreview.ForeColor = colorPicker1.colorPickerControlView1.CurrentColor.Color;
}

値をSystem.Drawing.Colorに変換したいのですが。

何か案は?

31
delete
System.Windows.Media.Color mediacolor; // your color

var drawingcolor = System.Drawing.Color.FromArgb(
    mediacolor.A, mediacolor.R, mediacolor.G, mediacolor.B);
56
Blindy