CBitmap::getbitmapbits example



Does anyone have an example on how to use the CBitmap::GetBitmapbits properly?

This what I want to do (I thought GetBitmapbits is the right method to use).

I have a CBitmapobject and I wan to to serialize this to bytearray. This byterray is then used to display the image in in WPF (formerly known as avalon). (Basically I want to convert a CDC* to a .NET WPF Image) as decribed here:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=187401&SiteID=1

.