ColorExtensions Class

Definition

Extension methods for System.Drawing.Color

public static class ColorExtensions
Inheritance
ColorExtensions

Remarks

Methods

AddLuminosity(Color, Single)

Adds luminosity to the existing color

MultiplyAlpha(Color, Single)

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

ToInt(Color)
ToPlatformColor(Color)

Converts the color to the platform specific color.

ToPlatformColor(Color)

Converts the color to the platform specific color.

ToPlatformColor(Color)

Converts the color to the platform specific color.

ToSystemColor(Color)

Converts the color to the system specific color.

ToSystemColor(UIColor)

Converts the color to the system specific color.

ToSystemColor(Color)

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