• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 225
  • Last Modified:

C# Bitmap Creation

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
Falcubar
Asked:
Falcubar
  • 4
  • 3
1 Solution
 
DhaestCommented:
Did you try

Bitmap bitmap = new Bitmap(16384,15360);

Are you sure that all your variables are set ?

width
colums
rows
height
0
 
FalcubarAuthor Commented:
Yup, variables are set and tried that way but still same.
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
DhaestCommented:
Did you already try it with smaller bitmaps ?
0
 
FalcubarAuthor Commented:
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
 
FalcubarAuthor Commented:
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
 
FalcubarAuthor Commented:
No Workaround
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now