I am trying to read an image into a bitmap and then create a new bitmap with a specified size, effectively resizing the first bitmap:
image = new Bitmap(Path + FileName);
image = new Bitmap(image,new Size(Width, Height));
or by
Image img = System.Drawing.Image.FromFile(Path + FileName);
image = new Bitmap(img,Size);
In either case the second line throws an ArgumentException: 'Parameter is not valid'. If i do not specify a size object it works fine.