public static System.Drawing.Color ToColor(this C3d color) { return(System.Drawing.Color.FromArgb( Col.ByteFromDoubleClamped(color.R), Col.ByteFromDoubleClamped(color.G), Col.ByteFromDoubleClamped(color.B))); }
public void Write(C3d c) { Write(c.R); Write(c.G); Write(c.B); }
/// <summary> /// C3d to System.Drawing.Color. /// </summary> public static Color ToColor(this C3d color) => Color.FromArgb( Col.ByteFromDoubleClamped(color.R), Col.ByteFromDoubleClamped(color.G), Col.ByteFromDoubleClamped(color.B));