ImageLoader.loadAsIco

Load image as ico.

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

class ImageLoader
static
loadAsIco
(
string path
,
bool loadNoPixels = false
,
bool makeAlpha = 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.

makeAlpha bool

Convert to 32-bit and create an alpha channel from the AND-mask when loading

Return Value

Type: Image

loaded ico image

Meta