Home  Contents

gcx:dither

Graphics Core4 Lua Commands

SYNOPSIS

gcx:dither()

DESCRIPTION

Dithers the image stored in gcx down to black and white (one bit per pixel) using Floyd-Steinberg dithering. The calculation is done in place, changing the original image. Useful for preparing an image for a thermal printer.

ERRORS

Raises an error if gcx is not a graphics context.