bm_bitmap | R Documentation |
bm_bitmap()
creates an S3 object representing bitmap.
bm_bitmap(x)
x |
Object to be converted to |
Bitmaps are represented as integer matrices with special class methods.
The bottom left pixel is represented by the first row and first column.
The bottom right pixel is represented by the first row and last column.
The top left pixel is represented by the last row and first column.
The top right pixel is represented by the last row and last column.
Color bitmaps are supported (the integer can be any non-negative integer)
but we are unlikely to ever support exporting color bitmap fonts.
Color bitmaps can be cast to black-and-white bitmaps via bm_clamp()
.
An integer matrix with a “bm_bitmap” subclass.
[.bm_bitmap
and [<-.bm_bitmap
as.matrix.bm_bitmap()
as.raster.bm_bitmap()
and plot.bm_bitmap()
cbind.bm_bitmap()
and rbind.bm_bitmap()
format.bm_bitmap()
and print.bm_bitmap()
Ops.bm_bitmap()
for all the S3 “Ops” Group generic functions
which.bm_bitmap()
(with which()
re-defined as a generic)
as_bm_bitmap()
, is_bm_bitmap()
space <- bm_bitmap(matrix(0, nrow = 16, ncol = 16)) print(space, px = ".")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.