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< GifBlock > | Blocks =new List<GifBlock>() |
Additional blocks in the GIF stream. Doesn't include graphic control blocks. More... | |
Color32 | BackgroundColour |
The background colour. More... | |
|
inline |
Loads a GIF from the given stream.
|
inline |
Loads a GIF from the given data.
|
inline |
Loads a GIF from the given reader.
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
Loads a palette as a block of Color32's.
Implicitly converts a GIF into a GifFormat object. Used when adding a GIF to the image cache.
|
inline |
Reads a frame from the stream.
Color32 Gif.Gif.BackgroundColour |
The background colour.
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.