Solved

C# Bitmap Creation

Posted on 2012-04-12
7
206 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
  • 4
  • 3
7 Comments
 
LVL 53

Expert Comment

by:Dhaest
Comment Utility
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
Comment Utility
Yup, variables are set and tried that way but still same.
0
 
LVL 53

Expert Comment

by:Dhaest
Comment Utility
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 53

Expert Comment

by:Dhaest
Comment Utility
Did you already try it with smaller bitmaps ?
0
 

Author Comment

by:Falcubar
Comment Utility
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
Comment Utility
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
Comment Utility
No Workaround
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

763 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now