|
Boost : |
From: Gordon Smith (schmoo2k_at_[hidden])
Date: 2006-10-13 12:28:01
Looks like its this easy (not using any_image yet):
using namespace gil;
BITMAP bm;
m_bmp.GetBitmap(&bm);
if (bm.bmPlanes == 1 && bm.bmBitsPixel == 8)
{
rgb8c_view_t src = interleaved_view(bm.bmWidth, bm.bmHeight, (const
rgb8_pixel_t*)bm.bmBits, bm.bmWidthBytes);
}
"Gordon Smith" <schmoo2k_at_[hidden]> wrote in message
news:ego53p$ese$1_at_sea.gmane.org...
> (This is using windows OS)
>
> Is there anyway to simply initialize an image (any_image?) )from a memory
> bitmap? I would like to plug it into an existing app to play with it and
> this would really make it simple...
>
> Gordon.
>
>
>
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk