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

FX::FXBitmap Class Reference

#include <FXBitmap.h>

Inheritance diagram for FX::FXBitmap:

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

Public Methods

 FXBitmap (FXApp *a, const void *pix=NULL, FXuint opts=0, FXint w=1, FXint h=1)
 Create an image.

virtual void create ()
 Create bitmap.

virtual void detach ()
 Detach from bitmap.

virtual void destroy ()
 Destroy bitmap.

virtual void render ()
 Render pixels.

FXbool getPixel (FXint x, FXint y) const
 Get pixel at x,y.

void setPixel (FXint x, FXint y, FXbool color)
 Change pixel at x,y.

virtual void resize (FXint w, FXint h)
 Resize bitmap to the specified width and height; the contents become undefined.

virtual void save (FXStream &store) const
 Save object to stream.

virtual void load (FXStream &store)
 Load object from stream.

virtual FXbool savePixels (FXStream &store) const
 Save pixel data only.

virtual FXbool loadPixels (FXStream &store)
 Load pixel data only.

virtual ~FXBitmap ()
 Cleanup.


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: