Static Methods
.getDataURL( image : HTMLImageElement | HTMLCanvasElement, type : string ) : string
Returns a data URI containing a representation of the given image.
| image |
The image object. |
| type |
Indicates the image format. Default is |
- Returns: The data URI.
.sRGBToLinear( image : HTMLImageElement | HTMLCanvasElement | ImageBitmap | Object ) : HTMLCanvasElement | Object
Converts the given sRGB image data to linear color space.
| image |
The image object. |
- Returns: The converted image.