microsoft / WindowsCompositionSamples

The Windows Composition Samples have moved here: https://github.com/microsoft/WindowsAppSDK-Samples/tree/main/Samples/SceneGraph
https://github.com/microsoft/WindowsAppSDK-Samples/tree/main/Samples/SceneGraph
MIT License
1.13k stars 287 forks source link

how to apply effects to any shape of area of an xaml element or visual element? #345

Closed HppZ closed 5 months ago

HppZ commented 4 years ago

I want to apply effects to the blue area: image

HppZ commented 4 years ago

using a Path with its Fill property set to a effect brush is a solution, but any other solution available?

hawkerm commented 3 years ago

@ratishphilip's got a solution for this, see above and below this header here in his docs: https://github.com/ratishphilip/CompositionProToolkit#3-creating-masked-backdrop-brush-using-imasksurface