#include <Bmp.h>
Collaboration diagram for Bmp:
Public Methods | |
Bmp (const std::string &filename) | |
read a bitmap from file. More... | |
Bmp (size_t xsize_, size_t ysize_) | |
construct an empty bitmap. More... | |
Bmp (const Bmp &other) | |
Bmp & | operator= (const Bmp &other) |
virtual | ~Bmp () |
UINT32 | Xsize () const |
get width of bitmap. More... | |
UINT32 | Ysize () const |
get height of bitmap. More... | |
Pixel | getPixel (UINT32 xpos, UINT32 ypos) |
get access to one pixel of the bitmap. More... | |
const Pixel | getPixel (UINT32 xpos, UINT32 ypos) const |
void | setPixel (UINT32 xpos, UINT32 ypos, unsigned char red, unsigned char green, unsigned char blue) |
set the value of a pixel in the Bmp. More... | |
void | saveAs (const std::string &filename) const |
save the bitmap to file. More... | |
const std::string & | originalFilename () const |
returns the filename the Bmp was loaded from. More... | |
void | left (Pixel &curr, size_t dist=1) |
move a Pixel leftwards. More... | |
void | right (Pixel &curr, size_t dist=1) |
move a Pixel rightwards. More... | |
void | up (Pixel &curr, size_t dist=1) |
move a Pixel upwards. More... | |
void | down (Pixel &curr, size_t dist=1) |
move a Pixel downwards. More... | |
Private Methods | |
unsigned char * | pixelPointer (UINT32 xpos, UINT32 ypos) |
void | getPositions (const Pixel &pixel, UINT32 &xpos_result, UINT32 &ypos_result) const |
Static Private Methods | |
void | throw_wrong_pix_pos () |
Private Attributes | |
std::string | loaded_from_file |
UINT32 | xsize |
UINT32 | ysize |
unsigned char * | data |
size_t | offset_per_line |
Definition at line 160 of file Bmp.h.
|
read a bitmap from file.
|
|
construct an empty bitmap.
|
|
|
|
|
|
Definition at line 335 of file Bmp.cpp. Referenced by Bmp::getPositions(), and Bmp::pixelPointer(). |
|
Definition at line 172 of file Bmp.h. Referenced by Bmp::getPixel(), and Bmp::setPixel(). |
|
Definition at line 177 of file Bmp.h. Referenced by Bmp::down(), Bmp::left(), Bmp::right(), and Bmp::up(). |
|
|
|
get width of bitmap.
Definition at line 206 of file Bmp.h. Referenced by rs::halfBmp(), and Bmp::saveAs(). |
|
get height of bitmap.
Definition at line 209 of file Bmp.h. Referenced by rs::halfBmp(), and Bmp::saveAs(). |
|
get access to one pixel of the bitmap.
Definition at line 216 of file Bmp.h. Referenced by Bmp::down(), rs::halfBmp(), Bmp::left(), Bmp::right(), and Bmp::up(). |
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. |
|
set the value of a pixel in the Bmp.
Definition at line 228 of file Bmp.h. Referenced by rs::halfBmp(). |
|
save the bitmap to file.
|
|
returns the filename the Bmp was loaded from.
|
|
move a Pixel leftwards.
|
|
move a Pixel rightwards.
|
|
move a Pixel upwards.
|
|
move a Pixel downwards.
|
|
Definition at line 162 of file Bmp.h. Referenced by Bmp::Bmp(), Bmp::operator=(), and Bmp::originalFilename(). |
|
Definition at line 164 of file Bmp.h. Referenced by Bmp::Bmp(), Bmp::getPositions(), Bmp::operator=(), Bmp::pixelPointer(), and Bmp::Xsize(). |
|
Definition at line 165 of file Bmp.h. Referenced by Bmp::Bmp(), Bmp::getPositions(), Bmp::operator=(), Bmp::pixelPointer(), Bmp::saveAs(), and Bmp::Ysize(). |
|
Definition at line 167 of file Bmp.h. Referenced by Bmp::Bmp(), Bmp::getPositions(), Bmp::operator=(), Bmp::pixelPointer(), Bmp::saveAs(), and Bmp::~Bmp(). |
|
Definition at line 168 of file Bmp.h. Referenced by Bmp::Bmp(), Bmp::getPositions(), Bmp::operator=(), Bmp::pixelPointer(), and Bmp::saveAs(). |
Contact me in case of errors or questions. This documentation is powered by ![]() |
(C) 2000-2002 ![]() |