I am trying to use this example (see first answer): C# convert a 2D double array to and greyscale image I am getting this error: https://i.imgsafe.org/2226c81bdc.png
I am using:
using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Imaging;
using System.Linq;