Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FXGIFCursor.h File Reference

#include "FXCursor.h"

Go to the source code of this file.


namespace  FX


bool fxcheckGIF (FXStream &store)
bool fxloadGIF (FXStream &store, FXColor *&data, FXint &width, FXint &height)
bool fxsaveGIF (FXStream &store, const FXColor *data, FXint width, FXint height, bool fast=true)

Function Documentation

bool FX::fxcheckGIF FXStream &  store  ) 

Check if stream contains a GIF, return TRUE if so.

bool FX::fxloadGIF FXStream &  store,
FXColor *&  data,
FXint width,
FXint height

Load an GIF (Graphics Interchange Format) file from a stream.

Upon successful return, the pixel array and size are returned. If an error occurred, the pixel array is set to NULL.

bool FX::fxsaveGIF FXStream &  store,
const FXColor data,
FXint  width,
FXint  height,
bool  fast = true

Save an GIF (Graphics Interchange Format) file to a stream.

The flag "fast" is used to select the faster Floyd-Steinberg dither method instead of the slower Wu quantization algorithm.

Copyright © 1997-2005 Jeroen van der Zijp