How do I use large bitmaps in .NET?

后端 未结 7 1780
心在旅途
心在旅途 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:28

    One thing just struck me. Are you drawing the entire image and not only the visible part? You should not draw a bigger portion of the image than you are showing in your application, use the x, y, width and heigth parameters to restrict the drawn area.

提交回复
热议问题