How do I use large bitmaps in .NET?

后端 未结 7 1740
心在旅途
心在旅途 2020-12-05 11:38

I\'m trying to write a light-weight image viewing application. However, there are system memory limitations with .NET.

When trying to load large bitmaps (900

7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-05 12:17

    Can you create a new, blank, bitmap of the same dimensions and color depth? If that is the case, you at least know that your environment can handle the image. Then the problem resides in the image loading subsystem, as of course your link indicated might be the case.

    I guess you could write your own bitmap loaders, but that is a lot of work for non-trivial formats, so I wouldn't suggest it.

    Perhaps there are replacement libraries available that work around these issues with the standard loaders?

提交回复
热议问题