ImageUtils

A class containing utility functions for images.

Methods

.getDataURL(image : HTMLCanvasElement | HTMLImageElement | ImageBitmap) → String

image — The image object.

Returns a Data URL containing a representation of the given image.

.sRGBToLinear(image : HTMLCanvasElement | HTMLImageElement | ImageBitmap) → Object

image — The image object.

Converts the given sRGB image data to linear color space.

Source

For more info on how to obtain the source code of this module see this page.