#include <CImage.h>
Public Member Functions | |
| CImage (int w=-1, int h=-1) | |
| This is the CImage simple constructor. | |
| ~CImage () | |
| This is the CImage simple destructor. | |
| float & | operator() (unsigned int i, unsigned int j, unsigned int k) |
| This operator returns a reference to the color component corresponding to the coordinates. | |
| const float & | operator() (unsigned int i, unsigned int j, unsigned int k) const |
| This operator returns a constant reference to the color component corresponding to the coordinates. | |
| void | Allocate (int w, int h) |
| This function allocates an array of pixels of the desired size. | |
| int | WriteBmpFile (const std::string &FileName) const |
| This function writes the CImage data to an image file. | |
Private Attributes | |
| float * | m_pPixels |
| int | m_Width |
| int | m_Height |
It holds an array containing the color of each pixel of an image.
Definition at line 21 of file CImage.h.
| CImage::CImage | ( | int | w = -1, |
|
| int | h = -1 | |||
| ) | [inline] |
| CImage::~CImage | ( | ) | [inline] |
| float& CImage::operator() | ( | unsigned int | i, | |
| unsigned int | j, | |||
| unsigned int | k | |||
| ) | [inline] |
| const float& CImage::operator() | ( | unsigned int | i, | |
| unsigned int | j, | |||
| unsigned int | k | |||
| ) | const [inline] |
| void CImage::Allocate | ( | int | w, | |
| int | h | |||
| ) | [inline] |
float* CImage::m_pPixels [private] |
Definition at line 94 of file CImage.h.
Referenced by Allocate(), CImage(), operator()(), and ~CImage().
int CImage::m_Width [private] |
Array to the pixels data.
Definition at line 95 of file CImage.h.
Referenced by Allocate(), CImage(), operator()(), and WriteBmpFile().
int CImage::m_Height [private] |
Width of the image.
Definition at line 96 of file CImage.h.
Referenced by Allocate(), CImage(), operator()(), and WriteBmpFile().
1.5.4