krekman's picture

Accelerated c# gdi+ DrawImage

Hi, I wounder what the best way would be to use OpenGL acceleration on drawing a bitmap using gdi.

My aproach so far has been to draw everything visible, using gdi+ and c#, to a bitmap and then draw that bitmap in a single call.
In that last step I want to draw the bitmap using OpenGL to improve performance.

I'm an experienced c# developer, now shifting to Linux using mono.
And I'm developing medical software on a platform that has opengl harware, dri, Mesa etc.

Hope the question isn't to vauge.

btw, thanks for a great Tool Kit.



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

Check the textures example, which shows how to load and render a GDI+ Bitmap as an OpenGL texture.

You can find this in the 'OpenTK.Examples' project in OpenTK.sln.