2013/1/28 Christian Henning <chhenning@gmail.com>
Hi,
You can use the "at_c" function.
On Mon, Jan 28, 2013 at 9:53 AM, TONGARI <tongari95@gmail.com> wrote:
> Hi there,
>
> I'm curious of why gil::get_color(pixel, tag) is defined that way.
> Any need to take the tag value?
>
> If not, I'd prefer gil::get_color<Tag>(pixel) or just gil::get<Tag>(pixel)
> or even Tag::get(pixel).
rgb8_pixel_t p( 10, 20, 30);
unsigned char c = at_c<0>( p );
assert( c == 10 );
>I'm very interested in ideas to improve gil! Since I'm not familiar
> And if possible, I hope GIL would just make pixel a Fusion sequence.
>
with a fusion sequence could you elaborate a little further.