#include <ImageGrey.h>
Inheritance diagram for CImageGrey
Public Methods | |
CImageGrey () | |
Basic Constructor. | |
CImageGrey (int sx, int sy) | |
Create an empty image of size (sx,sy). | |
CImageGrey (CImageGrey *in) | |
Copy Constructor. | |
virtual | ~CImageGrey () |
Destructor. | |
int | NbImagesGet (void) const |
Nb of images defined. | |
int | HeightGet (void) const |
return Height. | |
int | WidthGet (void) const |
Return Width. | |
int | TopGet (void) const |
Return Top. | |
int | LeftGet (void) const |
Retrun Left. | |
int | LineLengthGet (void) const |
Return Length of a line. | |
LPPIXEL | BitmapGet (void) const |
Get the Bitmap. | |
int | MaxIndexGet (void) const |
Return Size of FULL bitmap. | |
LPPIXEL | BeginGet (void) const |
Return a pointer on the first pixel of the image. | |
PIXEL | PixelGet (int x, int y) const |
Return the value of the pixel (x,y). | |
void | PixelSet (int x, int y, PIXEL value) const |
Set the value of the pixel (x,y). | |
void | FrameSet (PIXEL val) |
Set the frame to a given value. | |
void | Set (PIXEL val) |
Set the image at a given value. | |
LPPIXEL | dir6c_0 (LPPIXEL p, short parity) const |
Return pixel in given direction (6 conectivity). | |
LPPIXEL | dir6c_1 (LPPIXEL p, short parity) const |
Return pixel in given direction (6 conectivity). | |
LPPIXEL | dir6c_2 (LPPIXEL p, short parity) const |
Return pixel in given direction (6 conectivity). | |
LPPIXEL | dir6c_3 (LPPIXEL p, short parity) const |
Return pixel in given direction (6 conectivity). | |
LPPIXEL | dir6c_4 (LPPIXEL p, short parity) const |
Return pixel in given direction (6 conectivity). | |
LPPIXEL | dir6c_5 (LPPIXEL p, short parity) const |
Return pixel in given direction (6 conectivity). | |
LPPIXEL | dir4c_0 (LPPIXEL p) const |
Return pixel in given direction (4 conectivity). | |
LPPIXEL | dir4c_1 (LPPIXEL p) const |
Return pixel in given direction (4 conectivity). | |
LPPIXEL | dir4c_2 (LPPIXEL p) const |
Return pixel in given direction (4 conectivity). | |
LPPIXEL | dir4c_3 (LPPIXEL p) const |
Return pixel in given direction (4 conectivity). | |
LPPIXEL | dir8c_0 (LPPIXEL p) const |
Return pixel in given direction (8 conectivity). | |
LPPIXEL | dir8c_1 (LPPIXEL p) const |
Return pixel in given direction (8 conectivity). | |
LPPIXEL | dir8c_2 (LPPIXEL p) const |
Return pixel in given direction (8 conectivity). | |
LPPIXEL | dir8c_3 (LPPIXEL p) const |
Return pixel in given direction (8 conectivity). | |
LPPIXEL | dir8c_4 (LPPIXEL p) const |
Return pixel in given direction (8 conectivity). | |
LPPIXEL | dir8c_5 (LPPIXEL p) const |
Return pixel in given direction (8 conectivity). | |
LPPIXEL | dir8c_6 (LPPIXEL p) const |
Return pixel in given direction (8 conectivity). | |
LPPIXEL | dir8c_7 (LPPIXEL p) const |
Return pixel in given direction (8 conectivity). | |
bool | isInImage (LPPIXEL p) const |
Return true if the pixel is in the image. | |
Private Attributes | |
LPPIXEL | pBitmap |
Bitmap image. | |
int | Width |
int | Height |
Width and height of the image. | |
int | MaxIndex |
Total number of byte allocated in an image. | |
int | LineLength |
Length of an image line. | |
int | Top |
int | Left |
First pixel of the image. | |
Static Private Attributes | |
int | nb_images = 0 |
Nb of images in memory. |