= PixelFormat.Format32bppRgb) { throw new ArgumentException("输入Bitmap的格式必须是Format32bppRgb"); } // 创建一个新的Bitmap对象,PixelFormat设置为Format24bppRgb Bitmap convertedBitmap = new Bitmap(source.Width, source.Height,