-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from Sergio0694/dev
New pipeline effects and brush properties
- Loading branch information
Showing
6 changed files
with
88 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using System; | ||
using Windows.UI; | ||
using Windows.UI.Xaml.Media; | ||
using UICompositionAnimations.Brushes.Effects.Interfaces; | ||
|
||
namespace UICompositionAnimations.Brushes.Effects | ||
{ | ||
/// <summary> | ||
/// A custom acrylic effect that can be inserted into a pipeline | ||
/// </summary> | ||
public sealed class AcrylicEffect : IPipelineEffect | ||
{ | ||
/// <summary> | ||
/// Gets or sets the source mode for the effect | ||
/// </summary> | ||
public AcrylicBackgroundSource Source { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the blur amount for the effect | ||
/// </summary> | ||
/// <remarks>This property is ignored when the active mode is <see cref="AcrylicBackgroundSource.HostBackdrop"/></remarks> | ||
public double BlurAmount { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the tint for the effect | ||
/// </summary> | ||
public Color Tint { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the color for the tint effect | ||
/// </summary> | ||
public double TintMix { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the <see cref="Uri"/> to the texture to use | ||
/// </summary> | ||
public Uri TextureUri { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters