diff --git a/Dashboard/Media/Color/ImageBuffer.cs b/Dashboard/Media/Color/ImageBuffer.cs index 3987f8c..11a6d28 100644 --- a/Dashboard/Media/Color/ImageBuffer.cs +++ b/Dashboard/Media/Color/ImageBuffer.cs @@ -22,7 +22,7 @@ namespace Dashboard.Media.Color Height = height; Depth = depth; - buffer = new byte[width * height * depth]; + buffer = new byte[(long)width * height * depth * format.BytesPerPixel()]; } ~QImageBuffer() {