System.Windows.Forms.ColorExtenders.ToColor C# (CSharp) Method

ToColor() public static method

public static ToColor ( this clr ) : Color
clr this
return System.Drawing.Color
		public static Color ToColor (this NSColor clr)
		{
			if (clr == null)
				return Color.Transparent;
			clr = clr.UsingColorSpace (NSColorSpace.CalibratedRGB);
			return Color.FromArgb ((int)clr.AlphaComponent, (int)clr.RedComponent, (int)clr.GreenComponent, (int)clr.BlueComponent);
		}
		public static NSColor ToNSColor (this Color clr)
ColorExtenders