ImageLoader.loadAsGif

Load image as gif.

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

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

load256Color bool

Load the image as a 256 color image with unused palette entries, if it's 16 or 2 color

playBack bool

'Play' the GIF to generate each frame (as 32bpp) instead of returning raw frame data when loading

Return Value

Type: Image

loaded gif image

Meta