PixelMask

Constructors

new

PixelMask

(width: number, height: number, data?: Uint8Array)

Creates a new instance of the PixelMask object

PixelMask

.

fromImageData

(image: ImageData)

Creates a new instance of the PixelMask object


Methods

toSurface

() ⇨ Promise<Surface>

Creates a surface from the PixelMask object