#include <Bmp.h>
Collaboration diagram for Pixel:
Public Methods | |
Pixel () | |
Construct a NULL-Pixel. More... | |
Pixel (unsigned char *pixPtr) | |
Construct a Pixel. More... | |
virtual | ~Pixel () |
unsigned char * | getPixPointer () |
provides low-level acces to the pixel pointer. More... | |
const unsigned char * | getPixPointer () const |
int | color (int rgb) const |
return one color channel of the pixel. More... | |
void | set_color (int rgb, unsigned char value) |
set the color of one channel. More... | |
bool | hasTransparentColor () const |
Tests if a pixel is transparent ( = black). More... | |
void | countMisMatches (const Pixel &other, long &matchCounter, long &mismatchCounter, int max_dist) |
function for fuzzy pixel comparison. More... | |
long | distance (const Pixel &other) const |
calculates the color-distance between two Pixels. More... | |
Pixel & | operator++ () |
increments to the next pixel (rightwards, line by line). More... | |
bool | operator== (const Pixel &other) const |
bool | operator!= (const Pixel &other) const |
Static Public Methods | |
void | defineTransparentColor (unsigned char red, unsigned char green, unsigned char blue) |
defines the transparent color (default = 0, 0, 0). More... | |
void | useTransparentColor (bool enabled) |
control whether a transparent color should be used (default is no). More... | |
Private Attributes | |
unsigned char * | pix |
Static Private Attributes | |
unsigned char | transparent_red = 0 |
unsigned char | transparent_green = 0 |
unsigned char | transparent_blue = 0 |
bool | use_transparent_color = false |
Definition at line 40 of file Bmp.h.
|
Construct a NULL-Pixel.
|
|
Construct a Pixel.
|
|
|
|
provides low-level acces to the pixel pointer.
Definition at line 59 of file Bmp.h. Referenced by Bmp::getPositions(). |
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. |
|
return one color channel of the pixel.
Definition at line 67 of file Bmp.h. Referenced by Pixel::countMisMatches(), Pixel::distance(), rs::halfBmp(), Pixel::hasTransparentColor(), and Pixel::operator==(). |
|
set the color of one channel.
|
|
Tests if a pixel is transparent ( = black).
Definition at line 79 of file Bmp.h. Referenced by Pixel::countMisMatches(), and Pixel::distance(). |
|
defines the transparent color (default = 0, 0, 0).
|
|
control whether a transparent color should be used (default is no).
|
|
function for fuzzy pixel comparison.
|
|
calculates the color-distance between two Pixels.
|
|
increments to the next pixel (rightwards, line by line).
|
|
|
|
|
|
Definition at line 42 of file Bmp.h. Referenced by Pixel::color(), Pixel::getPixPointer(), Pixel::operator++(), Pixel::Pixel(), and Pixel::set_color(). |
|
Definition at line 35 of file Bmp.cpp. Referenced by Pixel::hasTransparentColor(). |
|
Definition at line 36 of file Bmp.cpp. Referenced by Pixel::hasTransparentColor(). |
|
Definition at line 37 of file Bmp.cpp. Referenced by Pixel::hasTransparentColor(). |
|
Definition at line 38 of file Bmp.cpp. Referenced by Pixel::hasTransparentColor(), and Pixel::useTransparentColor(). |
Contact me in case of errors or questions. This documentation is powered by ![]() |
(C) 2000-2002 ![]() |