function toGrayImage
toGrayImage(
brightness: number,
): Uint8Array

Converts the image to a grayscale printer imagedata. Only for supported models

Parameters

brightness: number

Return Type

Uint8Array

Usage

import { toGrayImage } from "image-helpers";