31 #ifndef PNGPP_RGBA_PIXEL_HPP_INCLUDED 32 #define PNGPP_RGBA_PIXEL_HPP_INCLUDED 43 template<
typename T >
64 : red(red), green(green), blue(blue),
alpha(
alpha)
87 template<
typename T >
96 #endif // PNGPP_RGBA_PIXEL_HPP_INCLUDED pixel_traits< basic_rgba_pixel< T > > traits
Definition: rgba_pixel.hpp:46
basic_rgba_pixel(T red, T green, T blue, T alpha=traits::get_alpha_filler())
Constructs rgba_pixel object from red, green, blue and alpha components passed as parameters...
Definition: rgba_pixel.hpp:62
Pixel traits class template.
Definition: pixel_traits.hpp:48
T blue
Definition: rgba_pixel.hpp:70
T red
Definition: rgba_pixel.hpp:68
T green
Definition: rgba_pixel.hpp:69
basic_rgba_pixel< uint_16 > rgba_pixel_16
Definition: rgba_pixel.hpp:82
RGBA pixel type.
Definition: rgba_pixel.hpp:44
static T get_alpha_filler()
Returns the default alpha channel filler for full opacity.
Definition: pixel_traits.hpp:95
T alpha
Definition: rgba_pixel.hpp:71
basic_rgba_pixel< byte > rgba_pixel
Definition: rgba_pixel.hpp:77
Basic pixel traits class template.
Definition: pixel_traits.hpp:61
basic_rgba_pixel()
Default constructor. Initializes all components with zeros.
Definition: rgba_pixel.hpp:52
Basic pixel traits class template for pixels with alpha channel.
Definition: pixel_traits.hpp:89