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

An RGB pixel with alpha channel. More...

#include <png.hpp>

Inheritance diagram for facade::png::AlphaTrueColorPixel< _Sample >:
facade::png::TrueColorPixel< _Sample >

Public Member Functions

 AlphaTrueColorPixel ()
 
 AlphaTrueColorPixel (_Sample red, _Sample green, _Sample blue, _Sample alpha)
 
 AlphaTrueColorPixel (const AlphaTrueColorPixel &other)
 
_Sample & alpha ()
 The alpha channel of this pixel.
 
const _Sample & alpha () const
 The const alpha channel of this pixel.
 
- Public Member Functions inherited from facade::png::TrueColorPixel< _Sample >
 TrueColorPixel ()
 
 TrueColorPixel (Sample red, Sample green, Sample blue)
 
 TrueColorPixel (const TrueColorPixel &other)
 
Samplered ()
 Retrieve a reference to the red channel.
 
const Samplered () const
 Retrieve a const reference to the red channel.
 
Samplegreen ()
 Retrieve a reference to the green channel.
 
const Samplegreen () const
 Retrieve a const reference to the green channel.
 
Sampleblue ()
 Retrieve a reference to the blue channel.
 
const Sampleblue () const
 Retrieve a const reference to the blue channel.
 

Static Public Attributes

static const std::size_t Bits =_Sample::Bits*4
 
- Static Public Attributes inherited from facade::png::TrueColorPixel< _Sample >
static const std::size_t Max = Sample::Max
 The maximum value of the sample size.
 
static const std::size_t Bits = Sample::Bits*3
 The size, in bits, of this pixel object.
 

Additional Inherited Members

- Public Types inherited from facade::png::TrueColorPixel< _Sample >
using Sample = _Sample
 The sample class that was used in creating this class.
 
using Base = typename Sample::Base
 The base type of the sample class used in creating this class.
 

Detailed Description

template<typename _Sample = Sample8Bit>
class facade::png::AlphaTrueColorPixel< _Sample >

An RGB pixel with alpha channel.

Template Parameters
_SampleThe sample class to base the values on. Accepted values are facade::png::Sample8Bit and facade::png::Sample16Bit
See also
facade::png::AlphaTrueColorPixel8Bit
facade::png::AlphaTrueColorPixel16Bit

Constructor & Destructor Documentation

◆ AlphaTrueColorPixel() [1/3]

template<typename _Sample = Sample8Bit>
facade::png::AlphaTrueColorPixel< _Sample >::AlphaTrueColorPixel ( )
inline

◆ AlphaTrueColorPixel() [2/3]

template<typename _Sample = Sample8Bit>
facade::png::AlphaTrueColorPixel< _Sample >::AlphaTrueColorPixel ( _Sample  red,
_Sample  green,
_Sample  blue,
_Sample  alpha 
)
inline

◆ AlphaTrueColorPixel() [3/3]

template<typename _Sample = Sample8Bit>
facade::png::AlphaTrueColorPixel< _Sample >::AlphaTrueColorPixel ( const AlphaTrueColorPixel< _Sample > &  other)
inline

Member Function Documentation

◆ alpha() [1/2]

template<typename _Sample = Sample8Bit>
_Sample & facade::png::AlphaTrueColorPixel< _Sample >::alpha ( )
inline

The alpha channel of this pixel.

◆ alpha() [2/2]

template<typename _Sample = Sample8Bit>
const _Sample & facade::png::AlphaTrueColorPixel< _Sample >::alpha ( ) const
inline

The const alpha channel of this pixel.

Member Data Documentation

◆ Bits

template<typename _Sample = Sample8Bit>
const std::size_t facade::png::AlphaTrueColorPixel< _Sample >::Bits =_Sample::Bits*4
static

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