@fitbit/image-codec-txi
TypeScript icon, indicating that this package has built-in type declarations

1.1.6 • Public • Published

@fitbit/image-codec-txi

Greenkeeper badge

Coverage Status

TXI is an image format used on some Fitbit devices. This package is used to convert a raw bitmap raster to a TXI formatted image that is supported on the device.

API

encode(image: ImageData, options: TXIEncoderOptions):

Interface: ImageData

{
  width: number;
  height: number;
  data: Uint8ClampedArray;
}

Interface: TXIEncoderOptions

{
  rle?: boolean | 'auto';
  outputFormat?: TXIOutputFormat;
}

Enum: TXIOutputFormat

{
  RGB565 = 'RGB565',
  RGBA4444 = 'RGBA4444',
  RGBA6666 = 'RGBA6666',
  RGBA8888 = 'RGBA8888',
  A8 = 'A8',
}

Readme

Keywords

none

Package Sidebar

Install

npm i @fitbit/image-codec-txi

Weekly Downloads

187

Version

1.1.6

License

BSD-3-Clause

Unpacked Size

52.7 kB

Total Files

28

Last publish

Collaborators

  • gmaniak
  • stefanrm
  • hexxeh
  • orviwan