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

FXXBMIcon.h File Reference

#include "FXIcon.h"

Go to the source code of this file.

Namespaces

namespace  FX

Functions

bool fxcheckXBM (FXStream &store)
bool fxloadXBM (FXColor *&data, const FXuchar *pix, const FXuchar *msk, FXint width, FXint height)
bool fxloadXBM (FXStream &store, FXColor *&data, FXint &width, FXint &height, FXint &hotx, FXint &hoty)
bool fxsaveXBM (FXStream &store, const FXColor *data, FXint width, FXint height, FXint hotx=-1, FXint hoty=-1)
bool fxsavePS (FXStream &store, const FXColor *data, FXint width, FXint height, FXint paperw=612, FXint paperh=792, FXint margin=35, bool color=true)


Function Documentation

bool FX::fxcheckXBM FXStream &  store  ) 
 

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

bool FX::fxloadXBM FXColor *&  data,
const FXuchar pix,
const FXuchar msk,
FXint  width,
FXint  height
 

Load an XBM (X Bitmap) from pixel array and mask array.

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

bool FX::fxloadXBM FXStream &  store,
FXColor *&  data,
FXint width,
FXint height,
FXint hotx,
FXint hoty
 

Load an XBM (X Bitmap) file from a stream.

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

bool FX::fxsaveXBM FXStream &  store,
const FXColor data,
FXint  width,
FXint  height,
FXint  hotx = -1,
FXint  hoty = -1
 

Save an XBM (X Bitmap) file to a stream; if the parameters hotx and hoty are set to -1, no hotspot location is saved.

bool FX::fxsavePS FXStream &  store,
const FXColor data,
FXint  width,
FXint  height,
FXint  paperw = 612,
FXint  paperh = 792,
FXint  margin = 35,
bool  color = true
 

Save a PostScript file to a stream; format the picture to the maximal size that fits within the given margins of the indicated paper size.

Copyright © 1997-2005 Jeroen van der Zijp