Learn R Programming

bittermelon (version 2.2.1)

is_supported_bitmap: Test if the object is a bitmap object supported by the methods in this package

Description

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)

Value

TRUE or FALSE

Arguments

x

An object

See Also

is_bm_bitmap(), is_bm_pixmap(), grDevices::is.raster()

Examples

Run this code
space_matrix <- matrix(0L, nrow = 16L, ncol = 16L)
space_glyph <- bm_bitmap(space_matrix)
is_supported_bitmap(space_glyph)

Run the code above in your browser using DataLab