I\'m in a scenario where I\'m manipulating bitmaps using AForge.net in Unity. However, a Bitmap can\'t be applied to a texture in Unity, so I visibly can see my output, so how i
I managed to achieve this by using a memorystream, i.e.:
MemoryStream msFinger = new MemoryStream();
bitmapCurrentframeRed.Save(msFinger, bitmapCurrentframeRed.RawFormat);
redCamera.LoadImage(msFinger.ToArray());
redFilter.GetComponent().material.mainTexture = redCamera;
With bitmapCurrentframeRed being a Bitmap, redCamera being a texture2D and redFilter being a GameObject(plane) used to view my output.