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

A paletted pixel object. More...

#include <png.hpp>

Inheritance diagram for facade::png::PalettePixel< _Bits >:
facade::png::Sample< _Base, _Bits >

Public Member Functions

 PalettePixel ()
 
 PalettePixel (std::uint8_t value)
 
 PalettePixel (const PalettePixel &other)
 
- Public Member Functions inherited from facade::png::Sample< _Base, _Bits >
 Sample ()
 
 Sample (Base value)
 
 Sample (const Sample &other)
 
Base operator* () const
 Syntactic sugar to get the value of this sample.
 
Sampleoperator= (Base value)
 Syntactic sugar to assign the value of this sample.
 
Base value () const
 Get the value retained by this sample.
 
void set_value (Base value)
 Assign the given value to this sample.
 

Additional Inherited Members

- Public Types inherited from facade::png::Sample< _Base, _Bits >
using Base = _Base
 The base type used by this sample.
 
- Static Public Attributes inherited from facade::png::Sample< _Base, _Bits >
static const std::size_t Bits = _Bits
 The size, in bits, of this sample.
 
static const std::size_t Max = (1 << Bits) - 1
 The maximum value that can be used with this sample.
 

Detailed Description

template<std::size_t _Bits = sizeof(std::uint8_t)*8>
class facade::png::PalettePixel< _Bits >

A paletted pixel object.

Template Parameters
_BitsThe size, in bits, of the underlying value sample. Can be 1, 2, 4 or 8.
See also
facade::png::PalettePixel1Bit
facade::png::PalettePixel2Bit
facade::png::PalettePixel4Bit
facade::png::PalettePixel8Bit

Constructor & Destructor Documentation

◆ PalettePixel() [1/3]

template<std::size_t _Bits = sizeof(std::uint8_t)*8>
facade::png::PalettePixel< _Bits >::PalettePixel ( )
inline

◆ PalettePixel() [2/3]

template<std::size_t _Bits = sizeof(std::uint8_t)*8>
facade::png::PalettePixel< _Bits >::PalettePixel ( std::uint8_t  value)
inline

◆ PalettePixel() [3/3]

template<std::size_t _Bits = sizeof(std::uint8_t)*8>
facade::png::PalettePixel< _Bits >::PalettePixel ( const PalettePixel< _Bits > &  other)
inline

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