IConvertibleColor

IConvertibleColor interface

Declare methods for color conversions

public interface IConvertibleColor

Methods

Name Description
ToCmykString() Convert to CMYK color in the percentage format: cmyk(0%,0%,0%,0%)
ToCmykStringDecimal() Convert to CMYK color in the decimal format: cmyk(0,0,0,0)
ToHexString() Convert to HEX color in the format: #000000
ToHslaString() Convert to HSLA color in the format: hsla(0,0%,0%,0)
ToHslString() Convert to HSL color in the format: hsla(0,0%,0%)
ToHslStringDecimal() Convert to HSL color in the decimal format: hsl(0,0,0)
ToHwbaString() Convert to HWBA color in the format: hwba(0,0%,0%,0)
ToHwbString() Convert to HWB color in the format: hwb(0,0%,0%)
ToHwbStringDecimal() Convert to HWB color in the decimal format: hwb(0,0,0)
ToLabString() Convert to LAB color in the percentage format: lab(0%,0%,0%)
ToLabStringDecimal() Convert to LAB color in the decimal format: lab(0,0,0)
ToLchString() Convert to LCH color in the percentage format: lch(0%,0%,0%)
ToLchStringDecimal() Convert to LCH color in the decimal format: lch(0,0,0)
ToName() Convert to the Named color
ToNcolaString() Convert to the Natural color (NCola) in the percentage format with alpha channel
ToNcolString() Convert to the Natural color (NCol) in the percentage format
ToNcolStringDecimal() Convert to the Natural color (NCol) in the decimal format
ToOkLabString() Convert to OKLAB color in the percentage format: oklab(0%,0%,0%)
ToOkLabStringDecimal() Convert to OKLAB color in the decimal format: oklab(0,0,0)
ToOkLchString() Convert to OKLCH color in the percentage format: oklch(0%,0%,0%)
ToOkLchStringDecimal() Convert to OKLCH color in the decimal format: oklch(0,0,0)
ToRgbaString() Convert to the RGBA color
ToRgbString() Convert to the RGB color

See Also