0
如何将图像框中的结果thresolded图像转换为8bbp像素格式?我试过这段代码,但它不起作用?转换为8bbp像素格式
Bitmap orig = new Bitmap(thresholded);
Bitmap clone = new Bitmap(width , height , System.Drawing.Imaging.PixelFormat.Format8bppIndexed);
Graphics graphics = Graphics.FromImage(orig);
graphics.DrawImage(clone, 0, 0);
我得到一个黑色的picturebox。