Get Bitmap Handle (IntPtr) from byte[] using C# .net
I have a byte[].
It contains data of an image (jpeg or bitmap) with all the header inf开发者_高级运维o.
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
.
new Bitmap( new MemoryStream(bytes)).GetHbitmap()
?
精彩评论