GifPlayer

Display animated GIF images.

Modulerequire("gui")
TypeClass
InheritsView

It can also display other types of images, but only GIF images can be animated.

Displaying animated GIF images consumes lots of CPU resources, it is highly unrecommended to constantly display animated GIF images.

Hiding the view would automatically pause the animation, and showing the view would automatically continue the animation if it is enabled.

Class methods

create()

Create a new GifPlayer.

Return

GifPlayer

Methods

setImage(image)

Set the image.

Parameters

getImage()

Return the image.

Return

Image

setAnimating(animating)

Set whether the animated image should be played.

Parameters

isAnimating()

Return whether the image is being played.

Return

Boolean