private static Bitmap ChangePixelFormat(Bitmap inputImage, PixelFormat newFormat) { return (inputImage.Clone(new Rectangle(0, 0, inputImage.Width, inputImage.Height), newFormat)); }