bm_expand {bittermelon} | R Documentation |
bm_expand()
expands bitmap(s) by repeating each row and/or column
an indicated number of times.
bm_expand(bm_object, width = 1L, height = 1L)
bm_object |
Either a |
width |
An integer of how many times to repeat each column. |
height |
An integer of how many times to repeat each row. |
Either a bm_bitmap()
, bm_list()
, or bm_font()
object.
bm_extend()
(and bm_resize()
which makes larger bitmaps
by adding pixels to their sides.
font_file <- system.file("fonts/spleen/spleen-8x16.hex.gz", package = "bittermelon")
font <- read_hex(font_file)
capital_r <- font[[str2ucp("R")]]
print(capital_r, px = px_ascii)
print(bm_expand(capital_r, width = 2L),
px = px_ascii)
print(bm_expand(capital_r, height = 2L),
px = px_ascii)
print(bm_expand(capital_r, width = 2L, height = 2L),
px = px_ascii)