Skip to contents

Bittermelon bitmap and pixmap objects

Bittermelon bitmap and pixmap objects and methods. See also “Modify bitmaps” and “Other bitmap object utilities”.

bm_bitmap()
Bittermelon bitmap matrix object
as_bm_bitmap()
Cast to a bitmap matrix object
is_bm_bitmap()
Test if the object is a bitmap object
bm_pixmap()
Bittermelon pixmap matrix object
as_bm_pixmap()
Cast to a pixmap matrix object
is_bm_pixmap()
Test if the object is a pixmap object
`[`(<bm_matrix>) `[<-`(<bm_bitmap>) `[<-`(<bm_pixmap>)
Extract or replace parts of a bitmap/pixmap matrix
as.data.frame(<bm_bitmap>) as.data.frame(<bm_pixmap>)
Convert to data frame with pixel (x,y) coordinates
as.matrix(<bm_matrix>)
Cast bitmap/pixmap objects to a (normal) matrix
as.array(<bm_bitmap>) as.array(<bm_pixmap>)
Cast bitmap/pixmap objects to an array
cbind(<bm_bitmap>) rbind(<bm_bitmap>) cbind(<bm_pixmap>) rbind(<bm_pixmap>)
Combine bitmap/pixmap objects by rows or columns
plot(<bm_bitmap>) plot(<bm_pixmap>) as.raster(<bm_bitmap>) as.raster(<bm_pixmap>) col_bitmap
Plot bitmap/pixmap objects
print(<bm_bitmap>) format(<bm_bitmap>) px_unicode px_ascii px_auto()
Print bitmap objects
print(<bm_pixmap>) format(<bm_pixmap>)
Print pixmap objects

Bitmap list objects

Bitmap list objects and methods. See also “Modify bitmaps” and “Other bitmap object utilities”.

bm_list()
Bitmap list object
as_bm_list()
Coerce to bitmap list objects
is_bm_list()
Test if the object is a bitmap glyph list object
bm_compose()
Compose graphemes in a bitmap list by applying combining marks
bm_lapply()
Modify bitmap lists
Summary(<bm_list>)
max, min, and range for bitmap objects

Bitmap fonts

Bitmap font objects and methods. See also “Modify bitmaps” and “Other bitmap object utilities”.

bm_font()
Bitmap font object
as_bm_font()
Coerce to bitmap font objects
is_bm_font()
Test if the object is a bitmap font object
read_hex() write_hex()
Read and write hex bitmap font files
read_monobit() write_monobit()
Read and write bitmap font files using monobit
read_yaff() write_yaff()
Read and write yaff bitmap font files

Modify bitmaps and pixmaps

Functions to modify bitmaps, bitmap lists, and pixmaps

Ops(<bm_bitmap>) Ops(<bm_pixmap>) Ops(<bm_list>)
S3 Ops group generic methods for bitmap objects
bm_clamp()
Clamp bitmap values
bm_compress()
Compress bitmaps by a factor of two
bm_distort() bm_downscale()
Resize bitmaps via distortion.
bm_expand()
Expand bitmaps by repeating each row and/or column
bm_extend()
Extend bitmaps on the sides with extra pixels
bm_flip()
Flip (reflect) bitmaps
bm_gray() bm_grey()
Gray a bitmap
bm_invert()
Invert (negate) a bitmap
bm_mask()
Modify bitmaps via masking with a 'mask' bitmap
bm_outline()
Compute "outline" bitmap of a bitmap
bm_overlay()
Merge bitmaps by overlaying one over another
bm_pad()
Adjust bitmap padding lengths
bm_replace()
Replace a color in a bitmap with another color
bm_resize()
Resize bitmaps by trimming and/or extending
bm_rotate()
Rotate bitmaps 0, 90, 180, or 270 degrees
bm_shadow() bm_bold() bm_glow()
Bitmap shadow, bold, and glow effects
bm_shift()
Shift elements within bitmaps
bm_trim()
Trim bitmaps

Other bitmap object utilities

Other bitmap/pixmap object utility functions

c(<bm_bitmap>) c(<bm_font>) c(<bm_list>) c(<bm_pixmap>)
Combine bitmap objects
bm_call()
Execute a function call on bitmap objects
bm_edit()
Edit a bitmap via text editor
bm_padding_lengths()
Compute bitmap padding lengths
bm_pixel_picker()
Bitmap pixel picker
bm_print() bm_format()
Print bitmap objects
bm_heights() bm_widths()
Widths or heights of bitmaps
farming_crops_16x16()
Sprites for twenty farming crops

Unicode utilities

Unicode utility functions

Color utilities

Color utility functions

col2hex()
Colors to standardized hex strings
col2int() int2col()
Color to (native) integer conversions

Package options

Package global options

bm_options()
Get bittermelon options
bittermelon-package bittermelon
bittermelon: Bitmap Tools