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

FX::FXBMPImage Class Reference

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

#include <FXBMPImage.h>

Inheritance diagram for FX::FXBMPImage:

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

Public Member Functions

 FXBMPImage (FXApp *a, const void *pix=NULL, FXuint opts=0, FXint w=1, FXint h=1)
virtual FXbool savePixels (FXStream &store) const
virtual FXbool loadPixels (FXStream &store)
virtual ~FXBMPImage ()

Static Public Attributes

const FXchar fileExt []

Detailed Description

The BMP Image class is a convenience class for working with images 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::FXBMPImage::FXBMPImage FXApp a,
const void *  pix = NULL,
FXuint  opts = 0,
FXint  w = 1,
FXint  h = 1
 

Construct image from memory stream formatted in Microsoft BMP format.

virtual FX::FXBMPImage::~FXBMPImage  )  [virtual]
 

Destroy icon.


Member Function Documentation

virtual FXbool FX::FXBMPImage::savePixels FXStream store  )  const [virtual]
 

Save pixels into stream in Microsoft bitmap format.

Reimplemented from FX::FXImage.

virtual FXbool FX::FXBMPImage::loadPixels FXStream store  )  [virtual]
 

Load pixels from stream in Microsoft bitmap format.

Reimplemented from FX::FXImage.

Copyright © 1997-2005 Jeroen van der Zijp