How to create a bmp file from byte[] in C#

前端 未结 4 1564
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-13 11:34

I have a byte[] array received in TCP Client.The array contains a 24-bit RGB Bitmap file.How to create that bitmap file with given Width ,Height and data?

In C++ I u

4条回答
  •  佛祖请我去吃肉
    2020-12-13 11:58

    I'd recommend making a Bitmap in C#, and letting it save itself.

    For an example, see this post. (Particularly, the last response is correct.)

提交回复
热议问题