convertTo

@RequiresApi(value = 26)
infix inline fun Int.convertTo(colorSpace: ColorSpace.Named): Long(source)

Converts the color int receiver to a color long in the specified color space. This is equivalent to calling:

Color.convert(myColorInt, ColorSpace.get(colorSpace))

@RequiresApi(value = 26)
infix inline fun Int.convertTo(colorSpace: ColorSpace): Long(source)

Converts the color int receiver to a color long in the specified color space. This is equivalent to calling:

Color.convert(myColorInt, colorSpace)

@RequiresApi(value = 26)
infix inline fun Long.convertTo(colorSpace: ColorSpace.Named): Long(source)

Converts the color long receiver to a color long in the specified color space. This is equivalent to calling:

Color.convert(myColorLong, ColorSpace.get(colorSpace))

@RequiresApi(value = 26)
infix inline fun Long.convertTo(colorSpace: ColorSpace): Long(source)

Converts the color long receiver to a color long in the specified color space. This is equivalent to calling:

Color.convert(myColorLong, colorSpace)

@RequiresApi(value = 26)
infix inline fun Color.convertTo(colorSpace: ColorSpace.Named): Color(source)

Converts the color receiver to a color in the specified color space. This is equivalent to calling:

myColor.convert(ColorSpace.get(colorSpace))

@RequiresApi(value = 26)
infix inline fun Color.convertTo(colorSpace: ColorSpace): Color(source)

Converts the color receiver to a color in the specified color space. This is equivalent to calling:

myColor.convert(colorSpace)