Exception Details: System.ArgumentException: Parameter is not valid.
Bitmap result = new Bitmap(7016, 9921);
Part of the method:
public Bitmap ResizeBitmap(Bitmap b, int nWidth, int nHeight)
{
Bitmap result = new Bitmap(nWidth, nHeight);
nWidth and nHeight have thrown this same error, so I replaced it with explicit values and still the same error, it seems to work for smaller numbers though, but:
http://msdn.microsoft.com/en-us/library/7we6s1x3.aspx
Doesn't seem to indicate there is any limit? I've tried:
Bitmap result = new Bitmap(nWidth, nHeight);
Bitmap result = new Bitmap(7016, 9921);
Bitmap result = new Bitmap((int)7016, (int)9921);
All fail the same way.