Boost logo

Boost Users :

Subject: [Boost-users] [GIL] Change layout type of a pixel...
From: Eloi Du Bois (eloi.du.bois_at_[hidden])
Date: 2009-12-15 11:01:42

Hi all,

I would like to know how to change the layout of a given pixel type.
For example, I would like to do something like:

// Pixel = rgb16_pixel_t for example.
template<class Pixel>
void foo(Pixel & A) {
    typedef typename pixel<hsl_t, Pixel::bits>::type hsl_pixel_t;
    hsl_pixel_t a;
    color_convert(A, a);

Thank you by advance,

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at