views:

72

answers:

1

I have a byte[]. It contains data of an image (jpeg or bitmap) with all the header info.

How can I create a bitmap from that byte[] , and obtain a handle to that bitmap?

The important point is, I need to get a handle to that bitmap. The handle I need to get is of type IntPtr.

+5  A: 
new Bitmap( new MemoryStream(bytes)).GetHbitmap()

?

leppie
It's so simple. Thanks!
Robogal