(1); Bitmap b = new Bitmap( xsize , ysize ); //b.PixelFormat = PixelFormat.Format8bppIndexed; for (int x = 0; x < xsize; x++) { for (int y = 0; y < ysize; y++) { Color c = Color.FromArgb(image[x, y], image[x, y], image[x, y]); b.SetPixel( x , y ,...
PixelMap pixelMap = PixelMap.create(initializationOptions); //这行代码报错native WritePixels from intArray fail. pixelMap.writePixels(pixels, 0, width, new Rect(0, 0, width, height));*/ 换成下面这段代码。这是创建PixelMap的正确姿势 PixelMap.InitializationOptions initializationOptions = new Pixel...