Creating huge high-resolution Bitmap bigger than 23k x 23k

故事扮演 提交于 2019-12-04 06:34:08

问题


I want to create a huge resolution Bitmap-image so that to load it into memory and transform it based on user-gestures.

I noticed that the limit for new Bitmap(int32,int32); is around 23000 but I need like 1159480 x 45920 with a bitdepth of 32.

Can someone help me out or is this impossible to do? I have 8 gigs of RAM.


回答1:


ARE YOU REALLY SURE YOU NEED SUCH SIZE? It should be bigger than than 150GB. Moreover if you consider a point size of 1/72 of inch your image will be 409 km 500 m...

EDITED If you need a high resolution image of a large area you should consider to use multiple images with different resolutions (think Google Maps for example).




回答2:


Have you looked at the Deep Zoom functionality in Silverlight?



来源:https://stackoverflow.com/questions/9888192/creating-huge-high-resolution-bitmap-bigger-than-23k-x-23k

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!