RedGIF:
Filter:
redSys/Classes (extension) | Red > redTools

RedGIF
ExtensionExtension

gif image decoder

Description

Read and decodes a .gif file from disk. Includes a simple -makeWindow method to display the pixels (but you should really write your own).

See

Class Methods

.read

Create a RedGIF by reading and decoding a .gif file from disk. Might take some time to decode.

Instance Methods

.makeWindow

As simple as possible.

Arguments:

bounds

A Rect that defines the position and size of the window.

rate

A Float for changing playback rate of animated GIFs. E.g. 0.5 will play at half speed.

interpolation

A Symbol that can be either \fast or \smooth.

.type

A string. Either "GIF87a" or "GIF89a".

.width

.height

Image dimensions in pixels.

.background

A Color. Can be nil if no -globalColorMap.

.aspectRatio

Usually 0.

.depth

Number of colors in the globalColorMap array (the color lookup table).

.globalColorMap

Array of Color objects.

.controls

Array of RedGIFControl objects. Corresponding control also saved in each RedGIFImage. See below.

.comments

Array of strings.

.appId

.appCode

Optional strings.

.appData

Optional data as an array.

.images

Array of RedGIFImage objects.

.read

Read and decode a .gif file from disk into an already existing instance.

.resolution

Get or set. Integer

.sorted

Get or set. Integer

Examples