Convert a pdfium_bitmap to base R's "raster" (character hex)
Source: R/render.R
as.raster.pdfium_bitmap.RdReturns 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_bitmapfrompdf_render_page().- ...
Ignored.