Microsoft DirectComposition is a Windows component that enables high-performance bitmap composition with transforms, effects, and animations. ![]() Have you thought about using DComp? For why using DComp may be appropriate, take a look at this: įor a brief summary of what DComp is (from MSDN): Thanks in advance for any idea how to solve my problem. So I am not sure how to render into foreign windows.Ĭ) how to properly apply blur on a part of image? I found many algorithms but all of them are processed on CPU. ![]() If I call D3D10CreateDeviceAndSwapChain with swapchain's OutputWindow set to HWND of my application then it returns S_OK but when I set OutputWindow to HWND of any foreign window then the method fails. Problem is that I probably don't know how to use it. So my question would be how to improve the speed? I'm thinking about hardware accelerated drawing.Ī) I tried GDI-compatible Direct2D (using ID2D1DCRenderTarget+BindDC) but it is much slower than pure GDI.ī) I am thinking about Direct3D. And if I apply blur algorithm on the bitmap, then everything is slow as hell. I obtain GetWindowDC, GetWindowRect and AlphaBlend bitmap into buffer (CreateCompatibleDC/CreateCompatibleBitmap) and then BitBlt it into GetWindowDC. I have managed to work properly with GDI. It should work on Win7 and Win8 (so XP is not required). Also some kind of blur algorithm must be applied on this bitmap. It must be done very fast - bitmap is update when window is moved, resized etc. windows which do not belong to my application). ![]() I am working on certain project where the task is to paint bitmaps (currently HBITMAP/bitblt/alphablend) into non-client areas of all visible windows (i.e.
0 Comments
Leave a Reply. |