Companion

object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun fromArgb(argb: Long): PdfColor

Creates a color from a 0xAARRGGBB integer.

Link copied to clipboard

Parses a hex color string. Accepts #RGB, #RRGGBB, #AARRGGBB, or the same forms without the leading #. Useful when the color comes from a design tool ("paste this hex into the code").

Link copied to clipboard
fun fromRgb(rgb: Long): PdfColor

Creates a color from a 0xRRGGBB integer with full opacity.