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

RedGIF : Object
ExtensionExtension

gif image decoder
Source: RedGIF.sc

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

RedGIF.read(path)

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

Inherited class methods

Instance Methods

.makeWindow(bounds)

As simple as possible.

.type

.type = value

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

.width

.width = value

.height

.height = value

Image dimensions in pixels.

.background

.background = value

A Color. Can be nil if no -globalColorMap.

.aspectRatio

.aspectRatio = value

Usually 0.

.depth

.depth = value

Colour depth.

.globalColorMap

.globalColorMap = value

Array of colours.

.controls

.controls = value

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

.comments

.comments = value

Array of strings.

.appId

.appId = value

.appCode

.appCode = value

Optional strings.

.appData

.appData = value

Optional data as an array.

.images

.images = value

Array of RedGIFImage objects.

Inherited instance methods

Undocumented instance methods

.read(path)

Examples