AnimatedPicture

smile.pictures.AnimatedPicture
See theAnimatedPicture companion class

Builds and loads animations.

Attributes

Companion
class
Source
Element.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply(frames: Seq[Element], frameDelays: Seq[Int], startTime: Long = ...): Element

An animation of frames, each shown for its delay in frameDelays milliseconds, starting at startTime on the scale of System.currentTimeMillis(). An animation of nothing but empty pictures is the empty picture.

An animation of frames, each shown for its delay in frameDelays milliseconds, starting at startTime on the scale of System.currentTimeMillis(). An animation of nothing but empty pictures is the empty picture.

Attributes

Throws
IllegalArgumentException

if there are no frames, the delays are not one per frame, or a delay is negative

Source
Element.scala

The animated GIF at path, a resource path, a file path or a URL, loaded at once. In a browser, it must have been loaded with smile.pictures.AnimatedPicture.load first.

The animated GIF at path, a resource path, a file path or a URL, loaded at once. In a browser, it must have been loaded with smile.pictures.AnimatedPicture.load first.

Attributes

Throws
java.io.IOException

if the image cannot be found or loaded

Source
Element.scala

Loads the animated GIF at path asynchronously, on every platform. In a browser it is the only way to load one the first time, and afterwards smile.pictures.AnimatedPicture.fromGifPath serves the same path.

Loads the animated GIF at path asynchronously, on every platform. In a browser it is the only way to load one the first time, and afterwards smile.pictures.AnimatedPicture.fromGifPath serves the same path.

Attributes

Source
Element.scala