From b41414b77905a36fc233a32c6592e33490ab510c Mon Sep 17 00:00:00 2001 From: Sergey Vershinin Date: Thu, 9 Jun 2022 01:50:42 +0300 Subject: [PATCH] minor typo fix in var type --- articles/imagesharp/pixelbuffers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/articles/imagesharp/pixelbuffers.md b/articles/imagesharp/pixelbuffers.md index 9437da62..8200c43c 100644 --- a/articles/imagesharp/pixelbuffers.md +++ b/articles/imagesharp/pixelbuffers.md @@ -120,7 +120,7 @@ A short summary of the limitations: ### Exporting raw pixel data from an `Image` You can use @"SixLabors.ImageSharp.Image`1.CopyPixelDataTo*" to copy the pixel data to a user buffer. Note that the following sample code leads to to significant extra GC allocation in case of large images, which can be avoided by processing the image row-by row instead. ```C# -Rgb32[] pixelArray = new Rgba32[image.Width * image.Height] +Rgba32[] pixelArray = new Rgba32[image.Width * image.Height] image.CopyPixelDataTo(pixelArray); ```