A rectangular grid of Pixel.
More...
#include <image.hpp>
|
| | Image ()=delete |
| |
| | Image (int dimx, int dimy) |
| |
| std::string & | at (int x, int y) |
| | Access a character in a cell at a given position.
|
| |
| const std::string & | at (int x, int y) const |
| | Access a character in a cell at a given position.
|
| |
| Pixel & | PixelAt (int x, int y) |
| | Access a cell (Pixel) at a given position.
|
| |
| const Pixel & | PixelAt (int x, int y) const |
| | Access a cell (Pixel) at a given position.
|
| |
| int | dimx () const |
| |
| int | dimy () const |
| |
| void | Clear () |
| | Clear all the pixel from the screen.
|
| |
A rectangular grid of Pixel.
Definition at line 17 of file image.hpp.
◆ Image() [1/2]
◆ Image() [2/2]
| Image |
( |
int | dimx, |
|
|
int | dimy ) |
◆ at() [1/2]
| std::string & at |
( |
int | x, |
|
|
int | y ) |
Access a character in a cell at a given position.
- Parameters
-
| x | The cell position along the x-axis. |
| y | The cell position along the y-axis. |
Definition at line 29 of file image.cpp.
◆ at() [2/2]
| const std::string & at |
( |
int | x, |
|
|
int | y ) const |
Access a character in a cell at a given position.
- Parameters
-
| x | The cell position along the x-axis. |
| y | The cell position along the y-axis. |
Definition at line 36 of file image.cpp.
◆ PixelAt() [1/2]
| Pixel & PixelAt |
( |
int | x, |
|
|
int | y ) |
Access a cell (Pixel) at a given position.
- Parameters
-
| x | The cell position along the x-axis. |
| y | The cell position along the y-axis. |
Definition at line 43 of file image.cpp.
◆ PixelAt() [2/2]
| const Pixel & PixelAt |
( |
int | x, |
|
|
int | y ) const |
Access a cell (Pixel) at a given position.
- Parameters
-
| x | The cell position along the x-axis. |
| y | The cell position along the y-axis. |
Definition at line 50 of file image.cpp.
◆ dimx()
◆ dimy()
◆ Clear()
Clear all the pixel from the screen.
Definition at line 55 of file image.cpp.
◆ stencil
◆ dimx_
◆ dimy_
◆ pixels_
| std::vector<std::vector<Pixel> > pixels_ |
|
protected |
The documentation for this class was generated from the following files: