WindowsCommunityToolkit/Microsoft.Toolkit.Uwp.UI.Media/Effects/LuminanceToAlphaEffect.cs

22 строки
749 B
C#

// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using Microsoft.Toolkit.Uwp.UI.Media.Pipelines;
namespace Microsoft.Toolkit.Uwp.UI.Media
{
/// <summary>
/// A luminance to alpha effect
/// </summary>
/// <remarks>This effect maps to the Win2D <see cref="Graphics.Canvas.Effects.LuminanceToAlphaEffect"/> effect</remarks>
public sealed class LuminanceToAlphaEffect : PipelineEffect
{
/// <inheritdoc/>
public override PipelineBuilder AppendToBuilder(PipelineBuilder builder)
{
return builder.LuminanceToAlpha();
}
}
}