开发者

Get Bitmap Handle (IntPtr) from byte[] using C# .net

开发者 https://www.devze.com 2023-01-16 23:51 出处:网络
I have a byte[]. It contains data of an image (jpeg or bitmap) with all the header inf开发者_高级运维o.

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()

?

0

精彩评论

暂无评论...
验证码 换一张
取 消