📷 A modern, cross-platform, 2D Graphics library for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

31 lines
806 B

// <copyright file="PadTest.cs" company="James Jackson-South">
// Copyright (c) James Jackson-South and contributors.
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp.Tests
{
using System.IO;
using Xunit;
public class PadTest : FileTestBase
{
[Fact]
public void ImageShouldApplyPadSampler()
{
string path = CreateOutputDirectory("Pad");
foreach (TestFile file in Files)
{
Image image = file.CreateImage();
using (FileStream output = File.OpenWrite($"{path}/{file.FileName}"))
{
image.Pad(image.Width + 50, image.Height + 50)
.Save(output);
}
}
}
}
}