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

RGB pixel type. More...

#include <rgb_pixel.hpp>

Collaboration diagram for png::basic_rgb_pixel< T >:

Public Member Functions

 basic_rgb_pixel ()
 Default constructor. More...
 
 basic_rgb_pixel (T red, T green, T blue)
 Constructs rgb_pixel object from red, green and blue components passed as parameters. More...
 

Public Attributes

blue
 
green
 
red
 

Detailed Description

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

RGB pixel type.

Constructor & Destructor Documentation

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

Default constructor.

Initializes all components with zeros.

template<typename T >
png::basic_rgb_pixel< T >::basic_rgb_pixel ( red,
green,
blue 
)
inline

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

Member Data Documentation

template<typename T >
T png::basic_rgb_pixel< T >::blue
template<typename T >
T png::basic_rgb_pixel< T >::green
template<typename T >
T png::basic_rgb_pixel< T >::red

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