Questions tagged [direct-composition]

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.

28 questions
7
votes
1 answer

DirectComposition render to texture?

I would like to have directcomposition render to a texture. Is this possible? The reason for this is that I would like to be able to render a gpu accelerated windowless transparent flash player activex control to a texture. Something that is usually…
ronag
  • 49,529
  • 25
  • 126
  • 221
4
votes
3 answers

How to use the WinRT SwapChainPanel control in a WPF window?

I added references to WinRT dlls to a WPF project and I want to use SwapChainPanel inside of a WPF window. Is it really possible? For now I cant get it work.
Denis
  • 334
  • 4
  • 17
3
votes
0 answers

Can vulkan interop with direct composition for window background blur effects?

Is it possible to use the Win10 compositor for 'acrylic blur' effects but use Vulkan for rendering? It seems it might be by creating a DXGI swapchain and somehow using the Vulkan external memory extensions. But I can't find any examples of…
iam
  • 1,623
  • 1
  • 14
  • 28
3
votes
1 answer

per-pixel transparent window using Windows Composition engine in C++

I want to display a raw BGRA data (so I have an unsigned int *, with width and height) on a window so that the alpha component is taken into account to have per-pixel transparency. The final purpose is to integrate this in a graphic toolkit. after…
2
votes
1 answer

DCompositionCreateDevice2: E_INVALIDARG One or more arguments are invalid

Having an unusual problem running Win32C++ source codes with the function DCompositionCreateDevice2, which is compiled with VS 2015. The source codes compile without any error but display the above runtime error. Recompiling and running the same…
PaulusHub
  • 385
  • 1
  • 4
  • 17
2
votes
1 answer

transparent window using Windows Composition engine in c++

First, I want to say that I am a newbie in direct2d usage. My final purpose is to have per pixel transparent window. I have found this nice article…
vtorri
  • 166
  • 13
2
votes
0 answers

From IDCompositionVisual Getting back the content

I have a IDCompositionVisual pointer, i want to know the content associated with it, maybe save it as bitmap. It has SetContent method, but I could not figure out a way to get its content.
andy
  • 89
  • 7
1
vote
0 answers

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 when I apply the gaussian effect using…
unknown.prince
  • 710
  • 6
  • 19
1
vote
2 answers

Direct Composition, IDCompositionGaussianBlurEffect Throwing Access Violation Exception

I was working on a project which uses direct composition based on this Article: Windows with C++ : High-Performance Window Layering Using the Windows Composition Engine I was able to recreate the example and it is working. Currently i'm trying to…
trickymind
  • 557
  • 5
  • 21
1
vote
1 answer

Background Color Artifact in Window's Composition Engine (DWM)

Context from Kenny Kerr's blog: Windows Vista introduced a service called the Desktop Window Manager. The name was and continues to be misleading. Think of it as the Windows composition engine or compositor. This composition engine completely…
Tom Huntington
  • 2,260
  • 10
  • 20
1
vote
1 answer

How to use IDirectManipulationViewport::SetViewportRect?

Here is the slightly modified Direct Manipulation Sample app from windows 8 classic samples. I removed all elements except the single Viewport and it's Content (checkered texture). When I set IDirectManipulationVewport::SetViewportRect() with offset…
cos
  • 940
  • 1
  • 10
  • 25
1
vote
1 answer

Does WIC or DirectComposition replace GDI+?

I have a project that might involve some basic server side image creation (scaling, transforming, some text composting). In the past I've used GDI+ to do similar things, but Microsoft labels that as Legacy Graphics now and lists a few replacements…
Michael Cook
  • 1,676
  • 2
  • 26
  • 47
0
votes
0 answers

Using Effects in a WinUI 3 Application

I have the following code written in C#/WinUI 3: Visual visualTest = ElementCompositionPreview.GetElementVisual(_Test); Compositor compositorTest =…
0
votes
1 answer

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 ThemeShadow class and it works, but it does not…
0
votes
1 answer

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 data of the selection so that I can do stuff with…
Illuminati
  • 111
  • 7
1
2