Re: CBitmap::getbitmapbits example

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I don't know anything about WPF, and how it loads images.

I just wanted to say you might want to use GetDIBits instead of
GetBitmapBits

Search google for an example of how to use it.

AliR.

"bonk" <schwertfischtrombose@xxxxxx> wrote in message
news:e5ZjREIEGHA.2912@xxxxxxxxxxxxxxxxxxxxxxx
> 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
>


.