trying to create a bitmap from 8bit greyscale using System.Drawing.Bitmap
-
DisplayBitmap = new System.Drawing.Bitmap(camera.width, camera.height, stride, System.Drawing.Imaging.PixelFormat.Indexed, camera.MonocromeFrame); This gives me an invalid argument (System.Drawing.Imaging.PixelFormat.Indexed) DisplayBitmap = new System.Drawing.Bitmap(camera.width, camera.height, stride, System.Drawing.Imaging.PixelFormat.Format24bppRgb, camera.MonocromeFrame); gives me the image but it is 3 times as wide and just repeats
-
DisplayBitmap = new System.Drawing.Bitmap(camera.width, camera.height, stride, System.Drawing.Imaging.PixelFormat.Indexed, camera.MonocromeFrame); This gives me an invalid argument (System.Drawing.Imaging.PixelFormat.Indexed) DisplayBitmap = new System.Drawing.Bitmap(camera.width, camera.height, stride, System.Drawing.Imaging.PixelFormat.Format24bppRgb, camera.MonocromeFrame); gives me the image but it is 3 times as wide and just repeats
tried
Bitmap temp = new System.Drawing.Bitmap(camera.width, camera.height, stride, System.Drawing.Imaging.PixelFormat.Format24bppRgb, camera.MonocromeFrame); DisplayBitmap = new Bitmap(temp.Width,temp.Height); for(int y=0;y and it lagged beyond compare because it is a huge image. The board retarded my for loops here is a link to the code [No Paste version of the code](http://rafb.net/p/bK4NOv64.html) [[^](http://rafb.net/p/bK4NOv64.html "New Window")]