Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PointContainer

v8 optimizations done. fromXXX methods are static to move out polymorphic code from class instance itself.

Hierarchy

  • PointContainer

Index

Constructors

constructor

Methods

clone

getHeight

  • getHeight(): number

getPointArray

getWidth

  • getWidth(): number

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

Static fromHTMLCanvasElement

Static fromHTMLImageElement

Static fromImageData

Static fromUint32Array

  • fromUint32Array(uint32Array: Uint32Array, width: number, height: number): PointContainer

Static fromUint8Array

  • fromUint8Array(uint8Array: number[] | Uint8Array | Uint8ClampedArray, width: number, height: number): PointContainer

Generated using TypeDoc