ImageUtils

A class containing utility functions for images.

Methods

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

image — The image object.

Returns a data URI containing a representation of the given image.

.sRGBToLinear (image : HTMLCanvasElement | image : HTMLImageElement | image : 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.