ImageLoader.loadAsPng

Load image as png.

When an image which has another file type, assertion error is thrown.

class ImageLoader
static
loadAsPng
(
string path
,
bool loadNoPixels = false
,
bool ignoreGamma = false
)

Parameters

path string

image file path

loadNoPixels bool

When this flag is supported by a plugin, load only header data and possibly metadata (including embedded thumbnail). When the flag is not supported, pixels are loaded.

ignoreGamma bool

Avoid gamma correction on loading

Return Value

Type: Image

loaded png image

Meta