Modir
Modir

Reputation: 191

Large Image in .net

I want to create large image by C#. (i have some photos with large size (4800 * 4800). i want to merge these photos.)

I use Bitmap but don't support. (Error : Invalid Parameter)

Upvotes: 0

Views: 2683

Answers (2)

Kieron
Kieron

Reputation: 27107

you might like to check AForge.NET, it has a large image processor built in, and it's open source.

Upvotes: 0

Bevan
Bevan

Reputation: 44307

Some code would be useful ...

... However, to hazard an educated guess, I suspect you're trying to create an instance of Bitmap with either Width or Height (or both) greater than 2^15.

Essentially, you can't - the .NET bitmap classes have a limitation on how big an image they can handle. Your original 4800 pixel square images won't be a problem, but going over 32,767 pixels will be.

Upvotes: 1

Related Questions