mirror of https://github.com/SixLabors/ImageSharp
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.
18 lines
636 B
18 lines
636 B
// Copyright (c) Six Labors.
|
|
// Licensed under the Six Labors Split License.
|
|
|
|
using SixLabors.ImageSharp.Processing;
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Overlays;
|
|
|
|
[Trait("Category", "Processors")]
|
|
[GroupOutput("Overlays")]
|
|
public class VignetteTest : OverlayTestBase
|
|
{
|
|
protected override void Apply(IImageProcessingContext ctx, Color color) => ctx.Vignette(color);
|
|
|
|
protected override void Apply(IImageProcessingContext ctx, float radiusX, float radiusY) =>
|
|
ctx.Vignette(radiusX, radiusY);
|
|
|
|
protected override void Apply(IImageProcessingContext ctx, Rectangle rect) => ctx.Vignette(rect);
|
|
}
|
|
|