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.
23 lines
794 B
23 lines
794 B
// Copyright (c) Six Labors and contributors.
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
using SixLabors.ImageSharp.PixelFormats;
|
|
using SixLabors.ImageSharp.Processing;
|
|
using SixLabors.ImageSharp.Tests.TestUtilities.ImageComparison;
|
|
|
|
using SixLabors.Primitives;
|
|
using Xunit;
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Overlays
|
|
{
|
|
[GroupOutput("Overlays")]
|
|
public class GlowTest : OverlayTestBase
|
|
{
|
|
protected override void Apply<T>(IImageProcessingContext<T> ctx, T color) => ctx.Glow(color);
|
|
|
|
protected override void Apply<T>(IImageProcessingContext<T> ctx, float radiusX, float radiusY) =>
|
|
ctx.Glow(radiusX);
|
|
|
|
protected override void Apply<T>(IImageProcessingContext<T> ctx, Rectangle rect) => ctx.Glow(rect);
|
|
}
|
|
}
|