C# Bitmap Creation

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

I'm trying to create a large bitmap image...
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?

Question by:Falcubar
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
LVL 53

Expert Comment

ID: 37836414
Did you try

Bitmap bitmap = new Bitmap(16384,15360);

Are you sure that all your variables are set ?


Author Comment

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

Expert Comment

ID: 37836478
Major Incident Management Communications

Major incidents and IT service outages cost companies millions. Often the solution to minimizing damage is automated communication. Find out more in our Major Incident Management Communications infographic.

LVL 53

Expert Comment

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

Author Comment

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.

Accepted Solution

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.


Author Closing Comment

ID: 39791925
No Workaround

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor ( Top Charts is a view in which you can set seve…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

707 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