Methods
setHeight
- setHeight(height: number): void
setWidth
- setWidth(width: number): void
toUint32Array
- toUint32Array(): Uint32Array
toUint8Array
- toUint8Array(): Uint8Array
Static fromBuffer
- fromBuffer(buffer: Buffer, width: number, height: number): PointContainer
Parameters
buffer: Buffer
width: number
height: number
Static fromHTMLCanvasElement
Parameters
canvas: HTMLCanvasElement
Static fromHTMLImageElement
Static fromUint32Array
- fromUint32Array(uint32Array: Uint32Array, width: number, height: number): PointContainer
Parameters
uint32Array: Uint32Array
width: number
height: number
Static fromUint8Array
- fromUint8Array(uint8Array: number[] | Uint8Array | Uint8ClampedArray, width: number, height: number): PointContainer
Parameters
uint8Array: number[] | Uint8Array | Uint8ClampedArray
width: number
height: number
v8 optimizations done. fromXXX methods are static to move out polymorphic code from class instance itself.