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

FXPNGIcon.h File Reference

#include "FXIcon.h"

Go to the source code of this file.


namespace  FX


bool fxcheckPNG (FXStream &store)
bool fxloadPNG (FXStream &store, FXColor *&data, FXint &width, FXint &height)
bool fxsavePNG (FXStream &store, const FXColor *data, FXint width, FXint height)

Function Documentation

bool FX::fxcheckPNG FXStream &  store  ) 

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

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

Load an PNG (Portable Network Graphics) 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::fxsavePNG FXStream &  store,
const FXColor data,
FXint  width,
FXint  height

Save an PNG (Portable Network Graphics) file to a stream.

Copyright © 1997-2005 Jeroen van der Zijp