// // Copyright (c) James Jackson-South and contributors. // Licensed under the Apache License, Version 2.0. // namespace ImageSharp.Tests.Processing.Transforms { using ImageSharp.PixelFormats; using Xunit; public class EntropyCropTest : FileTestBase { public static readonly TheoryData EntropyCropValues = new TheoryData { .25F, .75F }; [Theory] [WithFileCollection(nameof(DefaultFiles), nameof(EntropyCropValues), StandardPixelType)] public void ImageShouldEntropyCrop(TestImageProvider provider, float value) where TPixel : struct, IPixel { using (Image image = provider.GetImage()) { image.EntropyCrop(value) .DebugSave(provider, value, Extensions.Bmp); } } } }