Commit 60e5a9e
Win2D pipeline brushes (#3112)
* Added extensions and Win2D helpers
* Added PipelineBuilder type
* Added acrylic and tiles brushes
* Added XamlCompositionBrush type
* Added Win2D/Composition effects
* Added pipeline brush
* Minor code styling tweaks
* Switched composition cache to ConditionalWeakTable<TKey, TValue>
* Minor performance improvements
* More code switched to ConditionalWeakTable<TKey, TValue>
* Fixed missing file header
* Added empty PipelineBrush sample page
* Fixed an incorrect namespace
* Implemented PipelineBrush sample
* Fixed incorrect extensions namespaces
* Reordered using directives
* Code refactoring, added LuminanceToAlpha pipeline effect
* Added C# sample code
* Reordered a using statement
* Renamed some public APIs
* More API refactoring
* Removed unused API
* Reordered a using statement
* Added support for repeated effects in a pipeline
* Animation delegates changed to TimeSpan params
* Added effects setter APIs
* Removed unnecessary remarks
* Added generic parameter to effect setters
* Added generic parameter to effect animations
* Added overloads to set/animate a color effect
* Fixed some XML docs
* Added check for composition capabilities in brushes
* BackdropSaturationBrush switched to pipeline
* Removed unnecessary using directives
* Added pipeline invert effect
* BackdropInvertBrush switched to pipeline
* Reordered using directives
* BackdropBlurBrush switched to pipeline
* Added sepia effect APIs
* BackdropSepiaBrush switched to pipeline
* Added HDR color pipeline initialization APIs
* Minor code refactoring
* More code refactoring
* More code refactoring
* Added exposure effect
* Added grayscale effect
* Minor code refactoring and bug fixes
* Switched to ValueTask<T> to reduce allocations, new APIs
* Removed unnecessary APIs
* Streamlined prebuilt acrylic pipelines
* Added support for live updates in the acrylic brush
* Code refactoring to keep the style consistent
* Added support for noiseless acrylic effects
* Code refactoring
* Added XML remarks with Win2D reference links
* Renamed the TintEffect type
* Added TintEffect
* Added TemperatureAndTintEffect
* Added HueRotationEffect
* Aadded missing capability check
* Removed unnecessary APIs, code refactoring
* Removed an unnecessary resize step
* Win2DImageHelper class renamed to SurfaceLoader
* Unified SurfaceLoader APIs in the .Media package
* Added sample page for the AcrylicBrush
* Updated AcrylicBrush icon
* Added bindings for the AcrylicBrush sample
* Added dependency property to the TilesBrush
* Added sample page for the TilesBrush
* Fixed two XML comments
* Updated tile texture
* Added new brushes to the readme
* Minor code refactoring
* Added support for device lost in SurfaceLoader.Instance
* Updated tile brush texture
* Added opacity to tile brush sample
* Updated the PipelineBrush sample page icon
* Fixed PipelineBrush sample page shallow copy
* Update Microsoft.Toolkit.Uwp.SampleApp/SamplePages/TilesBrush/TilesBrushXaml.bind
Co-authored-by: Michael Hawker MSFT (XAML Llama) <[email protected]>
* Removed unnecessary CU badges
* Update Microsoft.Toolkit.Uwp.UI.Media/Brushes/AcrylicBrush.cs
Co-authored-by: Michael Hawker MSFT (XAML Llama) <[email protected]>
* Added missing effects to shallow copy
* Moved brushes to .Media namespace
* Fixed crash in pipeline sample page
* Switched BlendEffect.Mode to use proxy enum
* Minor code refactoring
* Added unicorn to PipelineBrush sample
* Fixed code URLs for brushes
* Fixed documentation URLs to brushes
* Fix StyleCop Issues with namespaces in Brushes
* Fixed uppercase acronym in public property
* Added DpiMode property to TilesBrush
Co-authored-by: Michael Hawker MSFT (XAML Llama) <[email protected]>
Co-authored-by: Michael Hawker MSFT (XAML Llama) <[email protected]>1 parent c51e301 commit 60e5a9e
File tree
75 files changed
+4336
-463
lines changed- Microsoft.Toolkit.Uwp.SampleApp
- Assets/BrushAssets
- SamplePages
- AcrylicBrush
- PipelineBrush
- TilesBrush
- Microsoft.Toolkit.Uwp.UI.Animations
- Microsoft.Toolkit.Uwp.UI.Media
- Brushes
- Base
- Effects
- Abstract
- Interfaces
- Enums
- Extensions
- System.Collections.Generic
- System.Threading.Tasks
- System
- Windows.UI.Composition
- Helpers
- Cache
- Pipelines
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
75 files changed
+4336
-463
lines changedLines changed: 30 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| 138 | + | |
| 139 | + | |
138 | 140 | | |
139 | 141 | | |
140 | 142 | | |
| |||
269 | 271 | | |
270 | 272 | | |
271 | 273 | | |
| 274 | + | |
272 | 275 | | |
273 | 276 | | |
| 277 | + | |
| 278 | + | |
274 | 279 | | |
275 | 280 | | |
276 | 281 | | |
| |||
511 | 516 | | |
512 | 517 | | |
513 | 518 | | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
514 | 522 | | |
515 | 523 | | |
516 | 524 | | |
| |||
529 | 537 | | |
530 | 538 | | |
531 | 539 | | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
532 | 546 | | |
533 | 547 | | |
534 | 548 | | |
| |||
584 | 598 | | |
585 | 599 | | |
586 | 600 | | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
587 | 605 | | |
588 | 606 | | |
589 | | - | |
590 | 607 | | |
591 | 608 | | |
592 | 609 | | |
| |||
979 | 996 | | |
980 | 997 | | |
981 | 998 | | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
982 | 1003 | | |
983 | 1004 | | |
984 | 1005 | | |
| |||
1006 | 1027 | | |
1007 | 1028 | | |
1008 | 1029 | | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
1009 | 1038 | | |
1010 | 1039 | | |
1011 | 1040 | | |
| |||
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
Lines changed: 84 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
0 commit comments