How to Convert 2-D array into Image in c#

后端 未结 5 725
忘掉有多难
忘掉有多难 2020-12-11 05:57

I have a 2D array of integers in c#.

Each entry in the 2-D array correspond to a pixel value

How can i make this 2-D array into an image file (in C#)

<
5条回答
  •  囚心锁ツ
    2020-12-11 06:54

    If speed is not a concern - Bitmap + SetPixel and than save to a file: http://msdn.microsoft.com/en-us/library/system.drawing.bitmap.setpixel.aspx

提交回复
热议问题