Aracılığıyla paylaş


ColorExtensions Class

Definition

Extension methods for System.Drawing.Color

public static class ColorExtensions
Inheritance
System.Object
ColorExtensions

Methods

AddLuminosity(Color, Single)

Adds luminosity to the existing color

FromHsva(Double, Double, Double, Double)

Convert HSVa color into System.Drawing.Color.

GetComplementary(Color)

Returns a new color that is on the opposite side of the color wheel from the original.

MultiplyAlpha(Color, Single)

Multiplies the current alpha by a percentage (0-1f)

ToHsv(Color)

Convert a System.Drawing.Color struct into HSV Color.

ToInt(Color)

Converts the current color to an interger

ToSystemColor(Color)

Converts the color to the system specific color.

ToSystemColor(Color)

Converts the color to the system specific color.

ToSystemColor(NSColor)
ToSystemColor(UIColor)

Converts the color to the system specific color.

ToUInt(Color)

Converts the color to a UInt representation.

WithAlpha(Color, Int32)

Creates a new color based on this color, but with a new alpha (0-255).

WithHue(Color, Single)

Creates a new color based on this color, but with a new hue (0-360).

WithLuminosity(Color, Single)

Creates a new color based on this color, but with a new luminosity (0-100).

WithSaturation(Color, Single)

Creates a new color based on this color, but with a new saturation (0-100).

Applies to