Jump to content
  • Advertisement
Sign in to follow this  
Inspiration2

Best C# library for implementing graphic editor's functions

This topic is 883 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
Advertisement

I think most modern graphics libraries can do this, monogame should do the job. Failing that you could just go lower level and use something like SlimDX, cutting out a few middle-men in the process?

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

You could try Win2D.

 

Granted it's win8+, failing that, I'd go with SlimDX (or whatever the best d2d wrapper is) or WPF.  Though WPF is likely to die on you, I was never all that impressed with it's performance.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!