1.1.6 • Published 3 years ago

@fitbit/image-codec-txi v1.1.6

Weekly downloads
977
License
BSD-3-Clause
Repository
github
Last release
3 years ago

@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',
}
1.1.6

3 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

6 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago