Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have got a situation where I am creating a bitmap as follows:

What I have tried:

bitmap=new Bitmap(newWidth,newHeight)
newWidth is say 10,000 and newHeight is like 9,000

Upon hitting this line I get an error about invalid parameter being used. It happens almost everytime
Is there a limitation to bitmap and what is it dependent upon?
Posted
Updated 10-Dec-16 20:10pm

1 solution

It's probably your system, and the available contiguous memory: What is the maximum resolution of C# .NET Bitmap? - Stack Overflow[^]
So start by looking at what else you are allocating, and perhaps try to create the really big objects earlier while the contiguous memory may be higher.
 
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