Solved

C# Bitmap Creation

Posted on 2012-04-12
7
212 Views
Last Modified: 2014-01-19
Hey All,

I'm trying to create a large bitmap image...
//16384*15360
Bitmap bitmap = new Bitmap(width * colums, rows * heigh);

Open in new window


But I getting the following: Parameter is not valid.

I don't think that image is too big for Bitmap and I can't see on MSDN if there is a limit to the max size?

Thanks
0
Comment
Question by:Falcubar
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 53

Expert Comment

by:Dhaest
ID: 37836414
Did you try

Bitmap bitmap = new Bitmap(16384,15360);

Are you sure that all your variables are set ?

width
colums
rows
height
0
 

Author Comment

by:Falcubar
ID: 37836432
Yup, variables are set and tried that way but still same.
0
 
LVL 53

Expert Comment

by:Dhaest
ID: 37836478
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 53

Expert Comment

by:Dhaest
ID: 37836710
Did you already try it with smaller bitmaps ?
0
 

Author Comment

by:Falcubar
ID: 37836718
Yes, I just tried with a smaller Bitmap and it works. Which is a shame, now i need to split out the images or buy a new computer :S I really need to compile all these small images into one big one.
0
 

Accepted Solution

by:
Falcubar earned 0 total points
ID: 37841463
Let me slightly change the question. I have 2200~ small images, 256x256. They are one big image split into smaller ones they all fit together like a jiigsaw to make one big image which I'm trying to do.

I have the algorithm to put them together its a problem creating a bitmap big enough in memory to hold it before being saved.

Do you/anyone have any idea's on how to do this? "Get more memory" isn't an option, I tried with a 12GB PC and get the same.

Thanks
0
 

Author Closing Comment

by:Falcubar
ID: 39791925
No Workaround
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question