libfacade 1.1
A library for manipulating PNG images with payloads.
|
A wrapper object for ScanlineVariant. More...
#include <png.hpp>
Public Member Functions | |
Scanline () | |
Scanline (const GrayscaleScanline1Bit &scanline) | |
Scanline (const GrayscaleScanline2Bit &scanline) | |
Scanline (const GrayscaleScanline4Bit &scanline) | |
Scanline (const GrayscaleScanline8Bit &scanline) | |
Scanline (const GrayscaleScanline16Bit &scanline) | |
Scanline (const TrueColorScanline8Bit &scanline) | |
Scanline (const TrueColorScanline16Bit &scanline) | |
Scanline (const PaletteScanline1Bit &scanline) | |
Scanline (const PaletteScanline2Bit &scanline) | |
Scanline (const PaletteScanline4Bit &scanline) | |
Scanline (const PaletteScanline8Bit &scanline) | |
Scanline (const AlphaGrayscaleScanline8Bit &scanline) | |
Scanline (const AlphaGrayscaleScanline16Bit &scanline) | |
Scanline (const AlphaTrueColorScanline8Bit &scanline) | |
Scanline (const AlphaTrueColorScanline16Bit &scanline) | |
Scanline (const Scanline &other) | |
Pixel | operator[] (std::size_t index) const |
Syntactic sugar for accessing a pixel in the variant. | |
std::uint8_t | filter_type () const |
Visit the variant type held and get the filter type of the held scanline. | |
void | set_filter_type (std::uint8_t filter_type) |
Visit the variant type held and set the filter type. | |
std::size_t | pixel_span () const |
Visit the variant type held and get the pixel span value. | |
std::size_t | pixel_width () const |
Visit the variant type held and get the pixel width value. | |
Pixel | get_pixel (std::size_t index) const |
Visit the variant type held and get the pixel at the given index. | |
void | set_pixel (const Pixel &pixel, std::size_t index) |
Visit the variant type held and set the pixel at the given index. | |
std::vector< std::uint8_t > | to_raw () const |
Visit the variant type held and get the raw bytes of the pixels represented. | |
A wrapper object for ScanlineVariant.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
std::uint8_t Scanline::filter_type | ( | ) | const |
Visit the variant type held and get the filter type of the held scanline.
Pixel Scanline::get_pixel | ( | std::size_t | index | ) | const |
Visit the variant type held and get the pixel at the given index.
Pixel Scanline::operator[] | ( | std::size_t | index | ) | const |
Syntactic sugar for accessing a pixel in the variant.
std::size_t Scanline::pixel_span | ( | ) | const |
Visit the variant type held and get the pixel span value.
std::size_t Scanline::pixel_width | ( | ) | const |
Visit the variant type held and get the pixel width value.
void Scanline::set_filter_type | ( | std::uint8_t | filter_type | ) |
Visit the variant type held and set the filter type.
void Scanline::set_pixel | ( | const Pixel & | pixel, |
std::size_t | index | ||
) |
Visit the variant type held and set the pixel at the given index.
std::vector< std::uint8_t > Scanline::to_raw | ( | ) | const |
Visit the variant type held and get the raw bytes of the pixels represented.