direct2d

Binding a DCRenderTarget to a Printer DC

Hi all! Is it possible to bind a Direct2D DCRenderTarget to a Printer DC? I need to create a print using Direct2D. Is this even possible? Any help appreciated, cheers, Nothi ...

Resizing SlimDX WindowRenderTarget properly

I am using SlimDX's Direct2D API to render a waveform in a Panel control. Unfortunately, resizing the control causes the RenderTarget to not resize itself properly. It resizes in "jumps", meaning that it only resizes after dragging the resize grip on the form a few pixels away. This results in behavior like this: The panel backcolor i...

How do I create a transparent bitmap with Direct2D?

I am trying to create a PNG bitmap with RGB+A info. I want to draw a rectangle on the bitmap that is semi transparent (In other words, R=255, G=255, B=255 A = 128). I am using managed code so either SlimDX or the codepack API. The most straight forward route appears to be using the codepack api and WIC so I created a WIC bitmap with: ...

Is TDirect2DCanvas slow or am I doing something wrong?

While looking for alternatives to replace GDI, I was trying to test Delphi's 2010 TDirect2DCanvas performance in Windows 7. I tested it by drawing a huge polyline using Direct2D and the result was absurdly slow, even with 500 times less data than the amount I've ran the same test using GDI (and I didn't even use a bitmap as backbuffer i...