41 questions
0
votes
0
answers
28
views
Windows MediaComposition Raise ComException During RenderToFileAsync and Fail
I have a project using Windows.Media.Editing.MediaComposition and when using it to render a video composed of few clips, the RenderToFileAsync works fine.
The problem is that when using a large amount ...
0
votes
0
answers
93
views
Acrylic blur on sprite
I tweaked the code in this documentation to have a blur on the sprites generated by it. By using Effect brushes as per this example and also guidance from this post. However, the sprite remains ...
0
votes
0
answers
565
views
Using complex paths for CompositionClip
Visuals in UWP/WinUI can have a Clip applied to them which is an instance of a CompositionClip. One of the types of CompositionClip is a GeometricClip which can have a Geometry of various types ...
3
votes
2
answers
230
views
I can't get my Projection Matrix to have a proper perspective for a Rotation animation
Im trying to replicate a plane projection rotation in UWP using the composition api. But I'm having trouble with a projection matrix in my composition code. Heres what I have:
private void ...
0
votes
2
answers
97
views
Composition - Why does my element immediately set a Blur on my animation?
I have the following Xaml for my sample app to demonstrate the issue:
<Page x:Class="App1.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://...
1
vote
1
answer
181
views
Why isn't the Translation property (Composition) retained?
I have the following code which translates the rectangle down 100px, then once completed translates the rectangle right 100px, BUT I would like the rightwards translation to maintain the animated Y (...
0
votes
0
answers
160
views
UWP: How to assign a LayerVisual as the first child of a Panel
I am adding a LayerVisual to a Panel by invoking
LayerVisual layerVisual; // this is created using a Compositor in previous logic
Panel parent; // I get this Panel from my XAML
...
0
votes
2
answers
192
views
Does the Windows Composition API support 2.5D projected rotation?
I have started to use the Windows Composition API in UWP applications to animate elements of the UI.
Visual elements expose RotationAngleInDegrees and RotationAngle properties as well as a ...
1
vote
2
answers
861
views
Offset values for Windows Composition Visual not getting correctly initialized
I am using UWP and working with the Composition API to programmatically slide items around on the screen and I have found that when the application first starts that the initial slide for many of the ...
1
vote
1
answer
125
views
How to make backside of Windows Composition UI ElementVisual different from front when rotated?
I have a uwp xaml application with series of buttons in the UI.
I am using the Windows Composition Visual Layer APIs to animate the RotationAngleInDegrees of one of the Button's visuals.
The content ...
2
votes
1
answer
238
views
How to add effect on CanvasGeometry
It seems to me that all the effects available in Win2D are for drawing image.
What about CanvasGeometry? How do I draw a CanvasGeometry using, say glowing effect ?
Thanks.
2
votes
0
answers
582
views
Is it possible to implicitly animate an element's size using the XAML Composition extensions?
I'm attempting to achieve automatic animation of size changes for elements. I think there's some interplay of Composition and XAML I don't fully understand.
First, I tried using the XAML extensions ...
1
vote
1
answer
383
views
Weird Opacity animation behavior after adding Composition Light effect
So I'm currently using Windows composition Apis to create a "fade-in" animation, combining a scale animation and an opacity animation, to my custom control, which worked perfectly fine. However, ...
11
votes
1
answer
785
views
Does UWP Composition Api support color replacement?
I've been trying to look for an examples which related to Color Replacement, here's an example using the Photoshop which can take, for example, a Blue shade and replace it with a Red shade:
BEFORE:
...
3
votes
1
answer
2k
views
Color Animation with ease
I have been following this question to make a color animation.
I can create the animation and it runs fine until the animation gets started again. There is a moment where it feels that the animation ...
3
votes
1
answer
120
views
Class not finding when using XamlCompositionBrushBase
So I tried to use BackdropBrush with XamlCompositionBrushBase creating a class called BackdropBlurBrush, but when I call it from XAML It doesn’t find the class.
I created the class on the main ...
2
votes
1
answer
558
views
uwp Expression node fade in animation
I am using the sample on Windows UI dev labs sample gallery. And I used ShyHeader example to put in my app, but I am not using exactly the same code but I actually edited the example according to own ...
2
votes
1
answer
944
views
UWP community fade animation not changing the opacity at all
await VolumeRing.Fade(value: 1f, duration: 20, delay: 0).StartAsync();
My problem is very simple. I am using UWP community toolkit to animate the fade animation of a xaml element but I've even checked ...
0
votes
0
answers
92
views
How to create the 'paper mache' texture used along with the Acrylic Accent by Microsoft?
I would like to generate the 'paper mache' texture that MS is using in its own apps, like Groove and Movie.
I already know how to create the transparent background, using CreateHostBackdropBrush() ...
2
votes
2
answers
2k
views
How to use Acrylic Accent (CreateHostBackDropBrush()) in Windows 10 Creators Update correctly?
I want to do something that could be a little bit tricky, since it's a new feature in Win 10 Creators Update: I would like to use the new Acrylic Accent feature to make transparent Windows in UWP apps....
2
votes
1
answer
466
views
How to combine multiple effects in UWP Composition API
I want to combine blur, Saturation and tint color.
I have a Blend effect, that consist of GaussianBlur and Tint color.
_compositor = ElementCompositionPreview.GetElementVisual(this).Compositor;
var ...