Public Member Functions |
| pixel_buffer () |
| pixel_buffer (size_t width, size_t height) |
| basic_pixel_buffer () |
| Constructs an empty 0x0 pixel buffer object.
|
| basic_pixel_buffer (size_t width, size_t height) |
| Constructs an empty pixel buffer object.
|
size_t | get_width () const |
size_t | get_height () const |
void | resize (size_t width, size_t height) |
| Resizes the pixel buffer.
|
row_type & | get_row (size_t index) |
| Returns a reference to the row of image data at specified index.
|
row_type const & | get_row (size_t index) const |
| Returns a const reference to the row of image data at specified index.
|
row_type & | operator[] (size_t index) |
| The non-checking version of get_row() method.
|
row_type const & | operator[] (size_t index) const |
| The non-checking version of get_row() method.
|
void | put_row (size_t index, row_type const &r) |
| Replaces the row at specified index.
|
pixel | get_pixel (size_t x, size_t y) const |
| Returns a pixel at (x,y) position.
|
void | set_pixel (size_t x, size_t y, pixel p) |
| Replaces a pixel at (x,y) position.
|
template<typename pixel>
class png::pixel_buffer< pixel >
The pixel_buffer specialization for unpacked pixels.