Microsoft DirectComposition is a Windows component that enables high-performance bitmap composition with transforms, effects, and animations. Application developers can use the DirectComposition API to create visually engaging user interfaces that feature rich and fluid animated transitions from one visual to another.
Questions tagged [direct-composition]
28 questions
0
votes
0 answers
Is it possible to drag and drop DirectCompositionVisual using direct manipulation?
I am working on directmanipulation with directcomposition in C++. It seems there are classes to achieve that for instance IDirectManipulationDragDropBehavior, but this class is an abstract class and for instance DCompositionAttachMouseDragToHwnd . I…

Illuminati
- 111
- 7
0
votes
0 answers
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. For eg say I have a 400x 400 window and it has 4…

Illuminati
- 111
- 7
0
votes
0 answers
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 without xaml::Controls and windows?
I have loaded…

Nikolay
- 13
- 3
0
votes
0 answers
Direct Composition has very high CPU and GPU usage
I have a Direct Composition swap chain as the root visual of my window. I want to draw semi transparent custom controls over the swap chain, so I use an IDCompositionVirtualSurface as the content of a child visual and on every frame call…

mbolp
- 21
- 1
- 4
0
votes
0 answers
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 used by a FrameBuffer Object in OpenGL.
How can I…

AlephNot
- 138
- 7
0
votes
2 answers
including causes a ton of errors in
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 looking at dcomp.h its clear that dcomp includes…

Chris
- 95
- 8
0
votes
0 answers
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 platform, has existed for a long time, so i can't…

vtorri
- 166
- 13
0
votes
1 answer
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 Monikers (TFMs) I used the same code an tried to cast…

trickymind
- 557
- 5
- 21
0
votes
1 answer
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 nicely, yet I cannot seem to figure out how to…
0
votes
0 answers
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 derived from the CompositionGeometry class. I'm seeking…

Zoso
- 3,273
- 1
- 16
- 27
0
votes
1 answer
Direct X Cropping Bitmap Based on Window Position and Rendering it back to window
I was working on a project which uses DirectX and Direct Composition. I am trying to create a similar effect like windows acrylic blur. Using direct composition I was able to apply the blur effect, saturation and blending to a given input. windows…

trickymind
- 557
- 5
- 21
0
votes
1 answer
How to tile a bitmap with DirectComposition or Windows.UI.Composition
How do I create a tiled image background using the compositor API?
D2D bitmap brushes have SetExtendModeX/Y, but CompositionSurfaceBrush don't seem to have an equivalent.
TileEffect is marked "NoComposition".
I'd like to avoid creating screen-sized…

Nikita Nemkin
- 2,780
- 22
- 23
0
votes
0 answers
Can you use direct composition with objects?
I have found this tutorial windows layering and I would like to know if this is possible with 3d objects like in this example. I would like to see only an object on transparent background. Thankyou.

warriorforce
- 41
- 8