Function

toArgb

Converts this color to an ARGB color int.

toArgb

Source set: Common
public fun Color.toArgb(): Int

Converts this color to an ARGB color int. A color int is always in the sRGB color space. This implies a color space conversion is applied if needed.

Return

An ARGB color in the sRGB color space

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: