Skip to contents

Returns a character matrix of "#RRGGBBAA" strings - the shape base R's "raster" class uses (and that grDevices::as.raster.matrix() would produce on a hex-character input). Note that R's nativeRaster integer encoding has no direct as.raster() method; this converter does the byte-unpacking explicitly.

Usage

# S3 method for class 'pdfium_bitmap'
as.raster(x, ...)

Arguments

x

A pdfium_bitmap from pdf_render_page().

...

Ignored.

Value

A "raster" object (character matrix of hex colors).