BloomTests.RuntimeImageProcessing.RuntimeImageProcessingTests.MakeTempPNGImage C# (CSharp) Method

MakeTempPNGImage() private method

private MakeTempPNGImage ( int width, int height ) : TempFile
width int
height int
return TempFile
        private TempFile MakeTempPNGImage(int width, int height)
        {
            var file = TempFile.WithExtension(".png");
            File.Delete(file.Path);
            using (var x = new Bitmap(width, height))
            {
                x.Save(file.Path, ImageFormat.Png);
            }
            return file;
        }