|
Boost Users : |
Subject: Re: [Boost-users] [gil] Unexplainable compiler error
From: Christian Henning (chhenning_at_[hidden])
Date: 2009-03-26 10:34:03
Hi there,
what type is m_imageData? The following works:
unsigned int w, h, p;
unsigned char* buffer;
rgba8c_view_t v1 = interleaved_view( w, h,
reinterpret_cast<rgba8_pixel_t const*>( buffer ), p );
rgba8_view_t v2 = interleaved_view( w, h,
reinterpret_cast<rgba8_pixel_t*>( buffer ), p );
BTW, please make sure to read the tutorial.
http://www.boost.org/doc/libs/1_38_0/libs/gil/doc/html/giltutorial.html
Christian
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net