# cFileLoaderBMP Class Reference
[Files]

cFileLoaderBMP provides a class to load BMP bitmap images into memory. More...

`#include <CFileLoaderBMP.h>`

List of all members.

## Public Member Functions
| cFileLoaderBMP ()
| Constructor of cFileLoaderBMP.
| cFileLoaderBMP (char *a_fileName)
| Constructor of cFileLoaderBMP. Load a bitmap file.
| ~cFileLoaderBMP ()
| Destructor of cFileLoaderBMP.
bool | loadBMP (char *iFileName)
| Load bitmap image file.
unsigned char * | pBitmap () const
| Get pinter to bitmap.
unsigned int | getWidth ()
| Get width of image.
unsigned int | getHeight ()
| Get height of image.
unsigned short | getBpp ()
| Get the number of bits per pixels.
string | getLastErrorMesg (void)
| Read last error message.
bool | isLoaded ()
| Has any image been loaded?

## Detailed Description

cFileLoaderBMP provides a class to load BMP bitmap images into memory.

## Constructor & Destructor Documentation

cFileLoaderBMP::cFileLoaderBMP | ( |  | ) |

Constructor of cFileLoaderBMP.

Constructor of cFileLoaderBMP

cFileLoaderBMP::cFileLoaderBMP | ( | char * | a_fileName | ) |

Constructor of cFileLoaderBMP. Load a bitmap file.

Constructor loads the bitmap when it is created

Parameters:

  | a_fileName | Filename of bitmap image.

cFileLoaderBMP::~cFileLoaderBMP | ( |  | ) |

Destructor of cFileLoaderBMP.

Destructor of cFileLoaderBMP

## Member Function Documentation

bool cFileLoaderBMP::loadBMP | ( | char * | a_fileName | ) |

Load bitmap image file.

Load a bitmap from a file and represent it correctly in memory.

Parameters:

  | a_fileName | Filename of image bitmap.

The documentation for this class was generated from the following files:

- D:/CHAI3D/build-2-0-0/2.0.0/win32/src/files/CFileLoaderBMP.h
- D:/CHAI3D/build-2-0-0/2.0.0/win32/src/files/CFileLoaderBMP.cpp

CHAI3D 2.0.0 documentation
Please address any questions to support@chai3d.org
(C) 2003-2009 - CHAI 3D
All Rights Reserved.