Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ImageOpts

Hierarchy

  • ImageOpts

Index

Properties

bits

bits: number

Number of bits/pixel in source image (only grayscale supported)

defaultvalue

8

chars

chars: NumOrString[]

Target characters in order of increasing brightness (assuming white text on black bg).

defaultvalue

{@link SHADES}

format

format: number | FnN

Format to apply to each pixel. If a function is given, it will be called for each pixel value, normalized to [0..1] interval (and after gamma correction). The function MUST return a valid format ID.

gamma

gamma: number

Gamma correction value / exponent. All source pixel values will be raised by this exponent.

defaultvalue

1

invert

invert: boolean

If true, uses inverted pixel values.

defaultvalue

false

Generated using TypeDoc