Sign in to follow this  

Best C# library for implementing graphic editor's functions

This topic is 667 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Asking here because it's more game-related task than business-project related.

 

The following features must be supported:
1. Fast drawing of many(more that 10-100k) single points and small lines.
2. Fast drawing of several (up to 10-100) images with high resolution(~1500x1000), which can be
a) partially out of view
b) all images in view at the same time scaled to small size
c) all in view with big size having transparency
3. Graphic control should be able to take only part of Windows Form (because UI is written using DevExpress)

Currently my choices are OpenTK and MonoGame, but I'm not sure they can do all this easily.

Edited by Inspiration2

Share this post


Link to post
Share on other sites

Microsoft has already done the hard job of adapting their Direct3D 11 API for use in apps that require high performance 2D graphics for which GDI+ is insufficent, and it is fully-featured because it's the rendering technology of WPF. The result is what we call Direct2D and DirectWrite.

 

If you don't mind C++/CLI interop code, I would recommend that you write a C++/CLI wrapper around the D2D features that you need and use that. That is what I did for my game editor in Windows Forms and it's order of magnitudes faster than GDI.

 

If you don't want to write C++/CLI you can access Direct2D via SlimDX or SharpDX but I had issues with those libraries.

Share this post


Link to post
Share on other sites

This topic is 667 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this