开发者

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

?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜