CmdrTallen
CmdrTallen

Reputation: 2282

Possible to make a managed (non-GDI) Bitmap?

Is it possible to make a fully managed code Bitmap object? My understanding is the Bitmap object is a wrapper around a GDI object - which is unmanaged code.

I am interesting in doing this to (hopefully) increase performance when dealing with thousands of images.

Upvotes: 3

Views: 366

Answers (2)

Igor Brejc
Igor Brejc

Reputation: 19004

I wanted to recommend looking at Paint.NET's source code, but it looks like it's not available anymore :(. Which is a shame, since it has a lot of good stuff on bitmaps. However, I discovered this: http://code.google.com/p/paint-mono/, maybe it could help you with your question

Upvotes: 0

Codebrain
Codebrain

Reputation: 5613

Never had a problem with the Bitmap object.

Conventional thinking is that unmanaged code is marginally faster than managed code, so it's strange that you perceive a performance increase in going the other way around...

Upvotes: 1

Related Questions