Skip to main content

ImageUtils

A class containing utility functions for images.

Methods

getDataURL

function getDataURL( image: HTMLCanvasElement, image: HTMLImageElement, image:
ImageBitmap ): String;

image -- The image object.

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

sRGBToLinear

function sRGBToLinear( image: HTMLCanvasElement, image: HTMLImageElement,
image: ImageBitmap ): Object;

image -- The image object.

Converts the given sRGB image data to linear color space.

Source

src/extras/ImageUtils.js