in Direct2D drawing 10.000 lines took 0.15s when in gdi+ it took 17s. I haven't made any bigger tests yet but the performance difference is significant, e.g. Of course, all direct2d methods should be extracted into direct2d.cpp file. I have used gdip.cpp to implement all native methods. supported methods: setLineWidth(), setForeground(), setLineCap(), setAntialias(), setLineJoin(), setLineWidth(), drawLine(), setLineAttributies() options for lines: width, start cap, end cap, dash cap, line join, miter limit, dash style dash offest drawing both Direct2D and GDI+ objects on the same gc Below is a list of Direct2D features already supported: SwtDirect2D - instead of gdi+ it uses direct2d to draw lines.īoth projects contain all required libraries and launch configurations. There are two test projects for initial implementation of Direct2D support.