29 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
3
votes
1
answer
105
views
Flickering when drawing to IDCompositionSurface
I tried drawing a rounded rectangle via the renderTarget, but encountered an issue where the image disappears every other frame—what could be the cause?
#include <d2d1_1.h>
#include <d2d1_2.h&...
3
votes
1
answer
169
views
Directx draws images with lighter colors
I tried a lot of png images and all of them fade in color
Window on the left, original image on the right
#include <Windows.h>
#include <d3d11.h>
#include <d3d11_4.h>
#include <...
2
votes
1
answer
314
views
Animation chain in WinUI 3
I am developing a desktop application on WinUI 3. My task is to play a fade animation on a TextBlock (smoothly lower the opacity to zero), then perform some action (for example, change the text), and ...
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"/&...
0
votes
2
answers
2k
views
Using shadows in a desktop application on WinUI 3
can you please explain how to use shadows in a desktop application on WinUI 3? I have looked at the MSDN documentation and it suggests using the ThemeShadow and DropShadow classes. I figured out the ...
0
votes
2
answers
183
views
How to get the pixel data from IDCompositionSurface
I am using DirectComposition in conjunction with DirectManipulation to render things. I have some text present on the DirectCompositionVisuals which are chained vertically. I want to pull the pixel ...
0
votes
0
answers
100
views
How can I update crisp content onto my screen when doing zoom using direct manipulation in windows desktop app?
I am new to windows world and trying to learn direct manipulation. I am able to handle the scroll and screen updating in that case.
With zoom direct manipulation maps existing pixel to new pixel size. ...
0
votes
0
answers
405
views
How to draw WinRT::Windows::UI::Composition::Visual on bitmap
I am trying to draw cppwinrt Lottie animation into my Direct2D app, but can't understand how to do this...
It's possible draw this animation (WinRT::Windows::UI::Composition::Visual) and get data ...
0
votes
0
answers
304
views
Render a Direct Composition to Memory location
I am trying to use this Acrylic Effect in an OpenGL/GLFW Context, the only approach I can think of is rendering the backdrop of the window by Direct Composition and saving it in memory, which can be ...
0
votes
2
answers
628
views
including <dcomp.h> causes a ton of errors in <d2d1_1.h>
I just implemented dcomp into my d3d11 application, and after attempting to compile I was met with 1.5k errors all related to d2d. I don't use d2d in my application at all and was confused, apon ...
0
votes
0
answers
521
views
direct2d: optimizing the rendering of several BGRA rectangles on a bitmap
I am porting a toolkit (namely the EFL) engine from pure GDI to Direct2D. More precisely, I am adding a Direct2D engine. The purpose is to have a faster engine than the GDI one.
This toolkit is cross ...
1
vote
0
answers
442
views
White border when using IDCompositionGaussianBlurEffect
My main goal is to create Acrylic effect like in Windows UWP Settings UI in C++ for windows. For creating back visual I'm using private API DwmpCreateSharedVirtualDesktopVisual, this works. But now ...
2
votes
1
answer
771
views
ICompositorDesktopInterop throws exception in TFM .NET 5
I was trying to port a C# code from .NET 4.8 to .NET 5, older version of .NET was using Microsoft.Windows.SDK.Contracts, In .NET 5 Microsoft.Windows.SDK.Contracts is replaced by Target Framework ...
0
votes
1
answer
90
views
DirectManipulation ScrollTo functionality
I am writing a Win32 application (C++) using DirectComposition and DirectManipulation. I have sucessfully created a my own Scroll View control by setting viewport and content visuals.
It all works ...
1
vote
0
answers
583
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 ...