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

FX::FXBitmap Class Reference

Bitmap is a one bit/pixel image used for patterning and stippling operations. More...

#include <FXBitmap.h>

Inheritance diagram for FX::FXBitmap:

FX::FXDrawable FX::FXId FX::FXObject List of all members.

Public Member Functions

 FXBitmap (FXApp *a, const void *pix=NULL, FXuint opts=0, FXint w=1, FXint h=1)
virtual void create ()
virtual void detach ()
virtual void destroy ()
virtual void render ()
virtual void release ()
FXbool getPixel (FXint x, FXint y) const
void setPixel (FXint x, FXint y, FXbool color)
virtual void resize (FXint w, FXint h)
virtual void save (FXStream &store) const
virtual void load (FXStream &store)
virtual FXbool savePixels (FXStream &store) const
virtual FXbool loadPixels (FXStream &store)
virtual ~FXBitmap ()

Friends

class FXDC
class FXDCWindow
class FXDrawable
class FXTopWindow

Detailed Description

Bitmap is a one bit/pixel image used for patterning and stippling operations.

See also:


Constructor & Destructor Documentation

FX::FXBitmap::FXBitmap (  FXApp *  a,
const void *  pix = NULL,
FXuint  opts = 0,
FXint  w = 1,
FXint  h = 1
) 
 

Create an image.

virtual FX::FXBitmap::~FXBitmap (   )  [virtual]
 

Cleanup.


Member Function Documentation

virtual void FX::FXBitmap::create (   )  [virtual]
 

Create bitmap.

Reimplemented from FX::FXId.

virtual void FX::FXBitmap::detach (   )  [virtual]
 

Detach from bitmap.

Reimplemented from FX::FXId.

virtual void FX::FXBitmap::destroy (   )  [virtual]
 

Destroy bitmap.

Reimplemented from FX::FXId.

virtual void FX::FXBitmap::render (   )  [virtual]
 

Render pixels.

virtual void FX::FXBitmap::release (   )  [virtual]
 

Release the client-side pixels buffer, freeing it if it was owned.

FXbool FX::FXBitmap::getPixel (  FXint  x,
FXint  y
)  const
 

Get pixel at x,y.

void FX::FXBitmap::setPixel (  FXint  x,
FXint  y,
FXbool  color
) 
 

Change pixel at x,y.

virtual void FX::FXBitmap::resize (  FXint  w,
FXint  h
)  [virtual]
 

Resize bitmap to the specified width and height; the contents become undefined.

Reimplemented from FX::FXDrawable.

virtual void FX::FXBitmap::save (  FXStream &  store  )  const [virtual]
 

Save object to stream.

Reimplemented from FX::FXDrawable.

virtual void FX::FXBitmap::load (  FXStream &  store  )  [virtual]
 

Load object from stream.

Reimplemented from FX::FXDrawable.

virtual FXbool FX::FXBitmap::savePixels (  FXStream &  store  )  const [virtual]
 

Save pixel data only.

virtual FXbool FX::FXBitmap::loadPixels (  FXStream &  store  )  [virtual]
 

Load pixel data only.

Copyright © 1997-2004 Jeroen van der Zijp