# cBitmap Class Reference
[Widgets]

This class provides functionalities to display a bitmap image. More...

`#include <CBitmap.h>`

Inheritance diagram for cBitmap:

[legend]

List of all members.

## Public Member Functions
| cBitmap ()
| Constructor of cBitmap.
virtual | ~cBitmap ()
| Destructor of cBitmap.
unsigned char * | getData ()
| Get a pointer to the actual image data... use with care...
unsigned int | getBitmapWidth ()
| Get width of image.
unsigned int | getBitmapHeight ()
| Get height of image.
unsigned int | getBitmapFormat ()
| Get the format (GL_RGB or GL_RGBA) of the image.
void | setZoomHV (float a_zoomHorizontal, float a_zoomVertical)
| Set zoom factors.
float | getZoomH ()
| Get zoom factor along horizontal axis.
float | getZoomV ()
| Get zoom factor along vertical axis.
void | enableTransparency (bool a_enableTransparency)
| enable or disable the use of transparency.
## Public Attributes
cImageLoader | m_image
| Image loader.

## Detailed Description

This class provides functionalities to display a bitmap image.

## Member Function Documentation

void cBitmap::setZoomHV | ( | float | a_zoomHorizontal,
|  | float | a_zoomVertical |
| ) |  |  |

Set zoom factors.

Set zoom factors for the horizontal and vertical directions

Parameters:

  | a_zoomHorizontal | Zoom factor along the horizontal direction
  | a_zoomVertical | Zoom factor along the vertical direction

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

- D:/CHAI3D/build-2-0-0/2.0.0/win32/src/widgets/CBitmap.h
- D:/CHAI3D/build-2-0-0/2.0.0/win32/src/widgets/CBitmap.cpp

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