Boost GIL


Classes

Returns an MPL integral type specifying the number of elements in a color base. More...

Classes

struct  size< ColorBase >
 Returns an MPL integral type specifying the number of elements in a color base. More...
 

Detailed Description

Returns an MPL integral type specifying the number of elements in a color base.

size: Semantic channel size

Example:

BOOST_STATIC_ASSERT((size<rgb8_pixel_t>::value == 3));
BOOST_STATIC_ASSERT((size<cmyk8_planar_ptr_t>::value == 4));