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

Properties

Private _height

_height: number

Private _pointArray

_pointArray: Point[]

Private _width

_width: number

Methods

clone

getHeight

  • getHeight(): number

getPointArray

  • getPointArray(): Point[]

getWidth

  • getWidth(): number

setHeight

  • setHeight(height: number): void

setWidth

  • setWidth(width: number): void

toUint32Array

  • toUint32Array(): Uint32Array

toUint8Array

  • toUint8Array(): Uint8Array

Static fromArray

  • fromArray(data: number[], width: number, height: number): PointContainer

Static fromCanvasPixelArray

  • fromCanvasPixelArray(data: any, width: number, height: number): PointContainer

Static fromHTMLCanvasElement

Static fromHTMLImageElement

Static fromImageData

Static fromNodeCanvas

Static fromUint32Array

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

Generated using TypeDoc