Skip to content

@mbtech-nl/bitmap / flipVertical

Function: flipVertical()

ts
function flipVertical(bitmap: LabelBitmap): LabelBitmap;

Defined in: transform.ts:112

Mirror a bitmap top-to-bottom.

Parameters

ParameterType
bitmapLabelBitmap

Returns

LabelBitmap

A new bitmap with rows reversed.

Example

ts
const mirrored = flipVertical(bitmap);

Released under the MIT License.