title: Decoding a 16 bit one channel png in c# (Unity)
body: <p>I've been stuck for a week trying to decode a 16-bit 1 channel png in Unity. The image is in form of a byte array that needs to be decoded to access the individual pixel values. The image is a depth image where each pixel contains a depth measure.</p>
  
  <p>I can't use Unity's Texture2d.loadImage(), since it automatically changes the format to RGBA24 for some reason. I also looked at the opencv plugin, but it is non-free and is therefore not an option. I can neither use System.Windows.Media.Imaging.PngBitmapDecoder from the .NET framework since <strong>my platform is Ubuntu</strong>.</p>
  
  <p>I do not have a .NET ide, I use MonoDevelop through Unity.</p>
  
  <p>Hope you guys can help! :)</p>