rgba

fun rgba(pixels: ByteArray, width: Int, height: Int): PdfImage

8-bit RGBA, 4 bytes per pixel (R,G,B,A). The alpha channel becomes a /SMask; if every pixel is fully opaque the mask is omitted.