libpng++  v0.2.5-1
C++ library for PNG images
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
png::basic_rgba_pixel< T > Struct Template Reference

RGBA pixel type. More...

#include <rgba_pixel.hpp>

Collaboration diagram for png::basic_rgba_pixel< T >:

Public Types

typedef pixel_traits
< basic_rgba_pixel< T > > 
traits
 

Public Member Functions

 basic_rgba_pixel ()
 Default constructor. More...
 
 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. More...
 

Public Attributes

alpha
 
blue
 
green
 
red
 

Detailed Description

template<typename T>
struct png::basic_rgba_pixel< T >

RGBA pixel type.

Member Typedef Documentation

template<typename T >
typedef pixel_traits< basic_rgba_pixel< T > > png::basic_rgba_pixel< T >::traits

Constructor & Destructor Documentation

template<typename T >
png::basic_rgba_pixel< T >::basic_rgba_pixel ( )
inline

Default constructor.

Initializes all components with zeros.

template<typename T >
png::basic_rgba_pixel< T >::basic_rgba_pixel ( red,
green,
blue,
alpha = traits::get_alpha_filler() 
)
inline

Constructs rgba_pixel object from red, green, blue and alpha components passed as parameters.

Alpha defaults to full opacity.

Member Data Documentation

template<typename T >
T png::basic_rgba_pixel< T >::alpha
template<typename T >
T png::basic_rgba_pixel< T >::blue
template<typename T >
T png::basic_rgba_pixel< T >::green
template<typename T >
T png::basic_rgba_pixel< T >::red

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