Click here to Skip to main content
15,889,281 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am developing a GIS application in C# .Net 4.5. I need to load huge bitmaps in my canvas. In case of small images it works fine. Somebody pl. help me to load large images for image processing.
Posted
Comments
Sergey Alexandrovich Kryukov 20-Mar-13 10:35am    
Not clear why is can be a problem. Anyway, you need to tag your UI library or application type.
—SA
Zoltán Zörgő 20-Mar-13 10:49am    
Why are you reposting the same topic with different formulation? http://www.codeproject.com/Answers/564914/HowplusMemoryplusMappedplusFileplushelpsplustoplus
Bernhard Hiller 21-Mar-13 4:04am    
Many GIS applications work on tiles of 256x256 pixels. I.e. a 2048x2048 bitmap is not used but 64 tiles instead.

Please see my comment to the question. You need to provide additional information. In the meanwhile, please see my past answer for some general idea, in case your images are really big:
Read Large Images in C#[^].

—SA
 
Share this answer
 
It's simple really. You can't. Windows GDI doesn't support images that big. Since no monitor on this earth can display such a huge image all at once, trying to load it all into GDI is pretty useless. Don't load what you really can't see.

You have to break the massive image down imput smaller individual images, say 250 pixels on a side and then load only those images you want and display them.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900