[X] I have written a descriptive pull-request title
[X] I have verified that there are no overlapping pull-requests open
[X] I have verified that I am following the existing coding patterns and practice as demonstrated in the repository. These follow strict Stylecop rules :cop:.
[x] I have provided test coverage for my change (where applicable)
Description
Fix #2779 by accounting pixel size. Also fixed some width*height multuplication overflows:
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.PixelFormats;
Rgba64[] data = new Rgba64[65536];
using Image<Rgba64> img = Image.WrapMemory<Rgba64>(data, 65537, 65536);
// doesn't throw here but will blow up later
// ...here for example
img.SaveAsPng("output.png");
Prerequisites
Description
Fix #2779 by accounting pixel size. Also fixed some
width*height
multuplication overflows: