A proxy to a pixel in an image.
More...
#include <image.hpp>
List of all members.
Detailed Description
A proxy to a pixel in an image.
Definition at line 21 of file image.hpp.
Constructor & Destructor Documentation
Pixel_proxy::Pixel_proxy |
( |
Image * |
img, |
|
|
unsigned |
y, |
|
|
unsigned |
x |
|
) |
| |
Constructs a proxy to a given pixel in a given image.
- Parameters:
-
img | the Image containing the pixel |
y | the row of the pixel |
x | the column of the pixel |
Definition at line 214 of file image.cpp.
Member Function Documentation
Pixel_proxy & Pixel_proxy::operator= |
( |
std::initializer_list< int > |
values | ) |
|
Assigns rgb values to the pixel.
If an empty initializer_list is given, the pixel is set to black. If a single value is given, it is assigned to r, g and b (usefull for grey-scale images). If three values are given, they are assigned to r, g and b (in that order).
- Parameters:
-
values | the values to assign |
Definition at line 219 of file image.cpp.
Member Data Documentation
Blue value of the referenced pixel
Definition at line 43 of file image.hpp.
Green value of the referenced pixel
Definition at line 43 of file image.hpp.
Red value of the referenced pixel
Definition at line 43 of file image.hpp.
The documentation for this struct was generated from the following files: