Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Applying ChromaKey To UI Elements in real-time #713

daronyondem opened this issue Jul 27, 2019 · 1 comment


Copy link

commented Jul 27, 2019

I'm trying to apply a chroma key to a UWP UIElement. It can be anything, a webview, or media element. In case you are coming from the old days of Silverlight :) it was possible to do it with HLSL PixelShared.

Taking a rendering of the element, applying the effect and drawing it back to the screen is possible, but pretty low FPS and high overhead for real-time use. Any suggestions?


This comment has been minimized.

Copy link

commented Jul 27, 2019

The efficient way to do such things for realtime use is via the Windows.UI.Composition functionality rather than directly using Win2D. Unfortunately, though, Windows.UI.Composition does not support ChromaKeyEffect, so I think there's no option other than to go the slow readback route.

@shawnhar shawnhar added the question label Jul 27, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.