im2char: Convert an image to a matrix of ANSI chars

Description Usage Arguments Value Examples

View source: R/image.R

Description

Convert an image to a matrix of ANSI chars

Usage

1
im2char(im, width = 80, font_aspect = 0.45, full_colour = FALSE)

Arguments

im

magick image

width

text output width. default: 80

font_aspect

ratio of width to height for the output font. default: 0.45

full_colour

use 24bit colour codes. default: FALSE. Only supported by some terminals

Value

Character string with ANSI colours

Examples

1
2
3
4
5
## Not run: 
im <- image_read(system.file('img', 'Rlogo.png', package = 'png'))
mat <- im2char(im)

## End(Not run)

coolbutuseless/ransid documentation built on Oct. 16, 2020, 5:06 p.m.