Skip to contents

is_supported_bitmap() returns TRUE for bm_bitmap, bm_pixmap, magick-image, nativeRaster, and raster objects (or subclasses) and FALSE for all other objects.

Usage

is_supported_bitmap(x)

Arguments

x

An object

Value

TRUE or FALSE

Examples

space_matrix <- matrix(0L, nrow = 16L, ncol = 16L)
space_glyph <- bm_bitmap(space_matrix)
is_supported_bitmap(space_glyph)
#> [1] TRUE