How to increase performance over GDI's DrawImage(Unscaled)?

前端 未结 1 1166
没有蜡笔的小新
没有蜡笔的小新 2021-01-06 01:14

In my user control\'s paint handler I iterate over a collection of predefined Bitmap objects and draw them to the client area thusly:

C# version:

相关标签:
1条回答
  • 2021-01-06 01:49

    Too late, but possibly somebody still need a solution.

    I've created small library GLGDI+ with similiar GDI+ syntax, which run upon OpenTK: http://code.google.com/p/glgdiplus/

    I'm not sure about stability, it has some issues with DrawString (problem with TextPrint from OpenTK). But if you need performance boost for your utility (like level editor in my case) it can be solution.

    0 讨论(0)
提交回复
热议问题