ImageLoader.loadAsTarga

Load image as targa.

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

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

loadRGB888 bool

If set the loader converts RGB555 and ARGB8888 -> RGB888

Return Value

Type: Image

loaded targa image

Meta