I have an interactive 2D-Viewport-Control (zooming, panning etc) where I'm displaying some images with the Graphics.DrawImage method. But this is extremely slow so I tried to accelerate the image drawing with Direct2D. In C++/CLI I wrote a wrapper around IDCRenderTarget.DrawBitmap and it actually works (when working alone).
However there is a tiny-little issue... I'm not able to draw with GDI+ and Direct2D at the same time. Either one or the other is visible so there is a lot of flickering right now. GDI+ draws some stuff first, then should Direct2D draw some images to the same viewport and then I want to draw some GDI+ stuff agian.
Do you know how to solve it?
win7 x86, VS 2008 & 2010, C++/CLI, C#, .NET 3.5 & 4.0, VB.NET, VBA... WPF is comming
remeber to give feedback you think my response deserves recognition? perhaps you may want to click the Rate this post link/button and add to my reputation
private lessons are not an option so please don't ask for help in private, I won't replay
if you use Opera and you'd like to have the tab-button functionality for the texteditor take a look at my Opera Tab-UserScirpt; and if you know how to stop firefox from jumping to the next control when you hit tab let me know