It goes "length = width * width * pixel-size". Should be "width * height * pixel-size".
Comments: ** Comment from web user: rstarkov **
Comments: ** Comment from web user: rstarkov **
I'm not 100% sure this is related, but I found it while debugging the following issue:
```
new MagickImage(<byte array>, new MagickReadSettings {
Width = 10, Height = 5, Format = MagickFormat.Rgba,
PixelStorage = new PixelStorageSettings { Mapping = "RGBA",
StorageType = StorageType.Char } })
```
If I omit PixelStorage, it works well, but if I specify it, I get an exception stating that my array should have been 400 bytes long, which is 10 * 10 * 4. The actual size of the array is 10 * 5 * 4, of course.