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

FX::FXBMPIcon Class Reference

The BMP Icon class is a convenience class for working with icons in the Microsoft Bitmap (.bmp) graphics file format. More...

#include <FXBMPIcon.h>

Inheritance diagram for FX::FXBMPIcon:

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

Public Member Functions

 FXBMPIcon (FXApp *a, const void *pix=NULL, FXColor clr=FXRGB(192, 192, 192), FXuint opts=0, FXint w=1, FXint h=1)
virtual bool savePixels (FXStream &store) const
virtual bool loadPixels (FXStream &store)
virtual ~FXBMPIcon ()

Static Public Attributes

static const FXchar fileExt []
static const FXchar mimeType []

Detailed Description

The BMP Icon class is a convenience class for working with icons in the Microsoft Bitmap (.bmp) graphics file format.

This makes it possible to use resources created with Windows development tools inside FOX without need for graphics file format translators. The bitmap loaded handles 1, 4, and 8 bit paletted bitmaps, 16 and 24 bit RGB bitmaps, and 32 bit RGBA bitmaps.


Constructor & Destructor Documentation

FX::FXBMPIcon::FXBMPIcon FXApp a,
const void *  pix = NULL,
FXColor  clr = FXRGB(192, 192, 192),
FXuint  opts = 0,
FXint  w = 1,
FXint  h = 1
 

Construct icon from memory stream formatted in Microsoft BMP format.

virtual FX::FXBMPIcon::~FXBMPIcon  )  [virtual]
 

Destroy icon.


Member Function Documentation

virtual bool FX::FXBMPIcon::savePixels FXStream store  )  const [virtual]
 

Save pixels into stream in Microsoft bitmap format.

Reimplemented from FX::FXImage.

virtual bool FX::FXBMPIcon::loadPixels FXStream store  )  [virtual]
 

Load pixels from stream in Microsoft bitmap format.

Reimplemented from FX::FXImage.


Member Data Documentation

const FXchar FX::FXBMPIcon::fileExt[] [static]
 

const FXchar FX::FXBMPIcon::mimeType[] [static]
 

Copyright © 1997-2005 Jeroen van der Zijp