RawImageData
Implements:
- ImageData
A container for raw RGBA image data.
Static Method Summary
| Static Public Methods | ||
| public static | from(image: ImageData | Image): RawImageData Creates a new image data container. | |
Constructor Summary
| Public Constructor | ||
| public | constructor(width: Number, height: Number, data: Uint8ClampedArray<ArrayBuffer>) Constructs a new image data container. | |
Member Summary
| Public Members | ||
| public | The RGBA image data. | |
| public | The height of the image. | |
| public | The width of the image. | |
Method Summary
| Public Methods | ||
| public | toCanvas(): Canvas Creates a canvas from this image data. | |
Static Public Methods
public static from(image: ImageData | Image): RawImageData source
Creates a new image data container.
Params:
| Name | Type | Attribute | Description | 
| image | ImageData | Image | An image or plain image data. | 
Public Constructors
public constructor(width: Number, height: Number, data: Uint8ClampedArray<ArrayBuffer>) source
Constructs a new image data container.
Params:
| Name | Type | Attribute | Description | 
| width | Number | 
 | The width of the image. | 
| height | Number | 
 | The height of the image. | 
| data | Uint8ClampedArray<ArrayBuffer> | 
 | The image data. | 
Public Members
Public Methods
public toCanvas(): Canvas source
Creates a canvas from this image data.
Return:
| Canvas | The canvas, or null if it couldn't be created. | 
 
    
  