libfacade 1.1
A library for manipulating PNG images with payloads.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
facade::png::Scanline Class Reference

A wrapper object for ScanlineVariant. More...

#include <png.hpp>

Inheritance diagram for facade::png::Scanline:

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.
 

Detailed Description

A wrapper object for ScanlineVariant.

Constructor & Destructor Documentation

◆ Scanline() [1/17]

facade::png::Scanline::Scanline ( )
inline

◆ Scanline() [2/17]

facade::png::Scanline::Scanline ( const GrayscaleScanline1Bit scanline)
inline

◆ Scanline() [3/17]

facade::png::Scanline::Scanline ( const GrayscaleScanline2Bit scanline)
inline

◆ Scanline() [4/17]

facade::png::Scanline::Scanline ( const GrayscaleScanline4Bit scanline)
inline

◆ Scanline() [5/17]

facade::png::Scanline::Scanline ( const GrayscaleScanline8Bit scanline)
inline

◆ Scanline() [6/17]

facade::png::Scanline::Scanline ( const GrayscaleScanline16Bit scanline)
inline

◆ Scanline() [7/17]

facade::png::Scanline::Scanline ( const TrueColorScanline8Bit scanline)
inline

◆ Scanline() [8/17]

facade::png::Scanline::Scanline ( const TrueColorScanline16Bit scanline)
inline

◆ Scanline() [9/17]

facade::png::Scanline::Scanline ( const PaletteScanline1Bit scanline)
inline

◆ Scanline() [10/17]

facade::png::Scanline::Scanline ( const PaletteScanline2Bit scanline)
inline

◆ Scanline() [11/17]

facade::png::Scanline::Scanline ( const PaletteScanline4Bit scanline)
inline

◆ Scanline() [12/17]

facade::png::Scanline::Scanline ( const PaletteScanline8Bit scanline)
inline

◆ Scanline() [13/17]

facade::png::Scanline::Scanline ( const AlphaGrayscaleScanline8Bit scanline)
inline

◆ Scanline() [14/17]

facade::png::Scanline::Scanline ( const AlphaGrayscaleScanline16Bit scanline)
inline

◆ Scanline() [15/17]

facade::png::Scanline::Scanline ( const AlphaTrueColorScanline8Bit scanline)
inline

◆ Scanline() [16/17]

facade::png::Scanline::Scanline ( const AlphaTrueColorScanline16Bit scanline)
inline

◆ Scanline() [17/17]

facade::png::Scanline::Scanline ( const Scanline other)
inline

Member Function Documentation

◆ filter_type()

std::uint8_t Scanline::filter_type ( ) const

Visit the variant type held and get the filter type of the held scanline.

See also
facade::png::ScanlineBase::filter_type

◆ get_pixel()

Pixel Scanline::get_pixel ( std::size_t  index) const

Visit the variant type held and get the pixel at the given index.

See also
facade::png::ScanlineBase::get_pixel

◆ operator[]()

Pixel Scanline::operator[] ( std::size_t  index) const

Syntactic sugar for accessing a pixel in the variant.

See also
facade::png::Scanline::get_pixel
facade::png::ScanlineBase::get_pixel

◆ pixel_span()

std::size_t Scanline::pixel_span ( ) const

Visit the variant type held and get the pixel span value.

See also
facade::png::ScanlineBase::pixel_span

◆ pixel_width()

std::size_t Scanline::pixel_width ( ) const

Visit the variant type held and get the pixel width value.

See also
facade::png::ScanlineBase::pixel_width

◆ set_filter_type()

void Scanline::set_filter_type ( std::uint8_t  filter_type)

Visit the variant type held and set the filter type.

See also
facade::png::ScanlineBase::set_filter_type

◆ set_pixel()

void Scanline::set_pixel ( const Pixel pixel,
std::size_t  index 
)

Visit the variant type held and set the pixel at the given index.

See also
facade::png::ScanlineBase::set_pixel

◆ to_raw()

std::vector< std::uint8_t > Scanline::to_raw ( ) const

Visit the variant type held and get the raw bytes of the pixels represented.

See also
facade::png::ScanlineBase::to_raw

The documentation for this class was generated from the following files: