Detailed Description

GIF's are amazing. This loads them and oh dear I accidentally 96mb pleas help

Public Member Functions

 Gif (System.IO.Stream stream)
 Loads a GIF from the given stream. More...
 
 Gif (byte[] data)
 Loads a GIF from the given data. More...
 
 Gif (Reader reader)
 Loads a GIF from the given reader. More...
 
SPAInstance GetInstance ()
 
void Load (Reader reader)
 
Color32[] ReadFrame (Color32[] prevFrame, GifFrame frame, Reader reader, Color32[] globalTable)
 Reads a frame from the stream. More...
 

Static Public Member Functions

static Color32[] LoadPalette (byte[] table)
 Loads a palette as a block of Color32's. More...
 
static Color32[] LoadFramePixels (Color32[] prevImage, byte[] pixels, Color32[] colorTable, bool interlaceFlag, GifFrame frame)
 
static implicit operator GifFormat (Gif gif)
 Implicitly converts a GIF into a GifFormat object. Used when adding a GIF to the image cache. More...
 

Public Attributes

int Width
 The width. More...
 
int Height
 The height. More...
 
byte ColorResolution
 Colour res. More...
 
int SortFlags
 The sort flags. More...
 
byte PixelAspect
 Pixel aspect. More...
 
SPA HostSPA
 A host SPA which will run animations for us. More...
 
GifFrame[] Frames
 Gif frames. Note that these aren't necessarily actual frames as, in order to get true colour GIF's, a hack is used where multiple "frames" are layered on top of each other to form a single actual frame. More...
 
List< GifBlockBlocks =new List<GifBlock>()
 Additional blocks in the GIF stream. Doesn't include graphic control blocks. More...
 
Color32 BackgroundColour
 The background colour. More...
 

Constructor & Destructor Documentation

Gif.Gif.Gif ( System.IO.Stream  stream)
inline

Loads a GIF from the given stream.

Gif.Gif.Gif ( byte[]  data)
inline

Loads a GIF from the given data.

Gif.Gif.Gif ( Reader  reader)
inline

Loads a GIF from the given reader.

Member Function Documentation

SPAInstance Gif.Gif.GetInstance ( )
inline
void Gif.Gif.Load ( Reader  reader)
inline
static Color32 [] Gif.Gif.LoadFramePixels ( Color32[]  prevImage,
byte[]  pixels,
Color32[]  colorTable,
bool  interlaceFlag,
GifFrame  frame 
)
inlinestatic
static Color32 [] Gif.Gif.LoadPalette ( byte[]  table)
inlinestatic

Loads a palette as a block of Color32's.

static implicit Gif.Gif.operator GifFormat ( Gif  gif)
inlinestatic

Implicitly converts a GIF into a GifFormat object. Used when adding a GIF to the image cache.

Color32 [] Gif.Gif.ReadFrame ( Color32[]  prevFrame,
GifFrame  frame,
Reader  reader,
Color32[]  globalTable 
)
inline

Reads a frame from the stream.

Member Data Documentation

Color32 Gif.Gif.BackgroundColour

The background colour.

List<GifBlock> Gif.Gif.Blocks =new List<GifBlock>()

Additional blocks in the GIF stream. Doesn't include graphic control blocks.

byte Gif.Gif.ColorResolution

Colour res.

GifFrame [] Gif.Gif.Frames

Gif frames. Note that these aren't necessarily actual frames as, in order to get true colour GIF's, a hack is used where multiple "frames" are layered on top of each other to form a single actual frame.

int Gif.Gif.Height

The height.

SPA Gif.Gif.HostSPA

A host SPA which will run animations for us.

byte Gif.Gif.PixelAspect

Pixel aspect.

int Gif.Gif.SortFlags

The sort flags.

int Gif.Gif.Width

The width.