ImageUtils - Verge3D User Manual - Soft8Soft
Description: Learn how to use ImageUtils in your interactive 3D apps made with Verge3D

# 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.