PdfColor.fromInt constructor
const
PdfColor.fromInt(
- int color
Creates a color from a 0xAARRGGBB integer.
Implementation
const PdfColor.fromInt(int color)
: red = (color >> 16 & 0xff) / 255.0,
green = (color >> 8 & 0xff) / 255.0,
blue = (color & 0xff) / 255.0,
alpha = (color >> 24 & 0xff) / 255.0;