@kaorun/listpng
v0.1.2
Published
Extract data from List PNG file.
Downloads
4
Readme
listpng
Analyze and extract List-PNG data. See ListPNG.
Installation
$ npm install @kaorun/listpng
Import
import { ListPNG } from @kaorun/listpng;
Usage
analyze( imageData )
Extract data from List-PNG file.
Argument
imageData
- imageData of List-PNG file to extract data.
Return
DataSource object
- Extracted data from List-PNG file. See DataSource.
DataSource
getHeader( name )
Argument
name
- header key to specify.
Return
mixed
- value for key.
getHeaders()
Return
object
- key/value of all header data.
getCustom()
Return
Uint8ClampedArray
- RGBA data array of custom header data.
getColumn( value )
Argument
value
- index of column or propertyname
.
Return
mixed
- object of column or undefined.
getColumns()
Return
array
- all columns