200 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
54
views
How to make composition ColorShadow control circular?
I am using the ColorShadow control from the CompositionProToolkit in a WinUI/UWP project. I ported it to WinUI by replacing namespaces and Window.Current... with CompositionTarget....
1
vote
1
answer
110
views
Copy part of the drawing in the same DrawingSession
I want to design a continues moving "waterfall" to represent a radio spectrum.
The way to do this in for example HTML5 is to draw 1 horizontal line at the top.
Then copy the entire drawing ...
1
vote
0
answers
102
views
C# WinUI3 Is it possible to use ffmpeg to decode using hardware and then render using win2d?
I'm using FFmpeg.AutoGen and Microsoft.Graphics.Win2D in C# to decode and render from an H264 Frame byte[] event. I've currently achieved smooth AirPlay screen mirroring using CanvasAnimatedControl ...
0
votes
2
answers
309
views
Use of GaussianBlurEffect in Winui 3 and CommunityToolkit.WINUUI.UI version 8
How can use GaussianBlurEffect in WINUI 3 and CommunityToolkit.WINUI,UI versione 8?
public static CompositionEffectBrush CreateBlurEffectBrush(double amount = 0.0)
{
var effect = new ...
0
votes
0
answers
40
views
uwp app hangs when device goes to battery saver mode
when the app is running and battery level goes down below 20%, battery saver turns on and app becomes unresponsive for some time . This also happens when we manualy turn on batery saver mode.
I turned ...
0
votes
1
answer
67
views
Removing from one list changing another list unexpectedly
I am trying to implement an undo functionality in my app, part of the code that gets executed when the undo button is pushed is as follows :
if (this.threadStep > 0)
{
Debug.WriteLine($"...
0
votes
1
answer
183
views
Why does visual studio think canvas control isn't a part of the win2d library?
I'm following the win2d tutorial here, but instead of creating a blank app I did a WPF C# application. No matter what I try, visual studio says the namespace doesn't have canvas control in it. I ...
1
vote
1
answer
141
views
Win2D CanvasBitmap::CreateFromBytes arguments don't match
I'm trying to render an image loaded into a cv::Mat object to an Win2D canvas.
The canvas:
<canvas:CanvasControl Draw="CanvasControlDraw" x:Name="GalleryCanvas" ClearColor="...
1
vote
0
answers
262
views
Using Effects in a WinUI 3 Application
I have the following code written in C#/WinUI 3:
<Grid Name="_MainGrid">
<Rectangle Name="_Test" Width="500" Height="500" Fill="Green"/&...
1
vote
0
answers
65
views
Rendering delay in loading the font from the "ms-appdata://" in win2d?
I have requirement of loading the text on scroll, each text will be having different font and such texts are in 100's, while scrolling i will be fetching the fonts from the ms-appdata://, which is ...
1
vote
0
answers
84
views
Win2D draw rotated image on canvas
I'm trying to automatically create a photo collage with Win2D library. I've defined a couple of methods to do that:
ICanvasImage RotateImage(ICanvasImage photo, Size size, float degrees) returns a ...
0
votes
2
answers
148
views
How Can A Non-Abstract Property of a Predefined Abstract Class Be Accessed?
I have populated an array of type ICanvasEffect with objects of derived classes, such as GaussianBlurEffect, PosterizeEffect, etc.
List<ICanvasEffect> effects = new List<ICanvasEffect>();
...
0
votes
1
answer
349
views
Initializing CanvasBitmap UWP
I'm trying to convert SoftwareBitmap into CanvasBitmap (on UWP).
But when I used BitmapPixelFormat.Bgra8 && BitmapAlphaMode.Premultiplied, I got an error like unsupported pixel format or alpha ...
-2
votes
1
answer
179
views
How to take text input in win2d just like we do in uwp with TextBox?
How to take text input in win2d like we do in uwp with TextBox?
2
votes
0
answers
651
views
Win2D effects in UI.Composition (C++)
Note: The goal is to create a window with an acrylic backdrop that can be drawn on by OpenGL. Any method that can achieve this is welcome.
I have been able to successfully create a compositor per this ...