Skip to main content

Class: JpegRenderer

Class to render qr data as jpeg.

Constructors

new JpegRenderer()

new JpegRenderer(): JpegRenderer

Returns

JpegRenderer

Methods

render()

static render(cellData, options?): Promise<Uint8Array>

Render the QR code data as a bitmap.

Parameters

cellData: QRCellData

The cell data for the QR code.

options?: IBitmapRendererOptions

The options for rendering.

Returns

Promise<Uint8Array>

The bitmap content.