Skip to content

Commit b41414b

Browse files
committed
minor typo fix in var type
1 parent 0dec4ce commit b41414b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/imagesharp/pixelbuffers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ A short summary of the limitations:
120120
### Exporting raw pixel data from an `Image<T>`
121121
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.
122122
```C#
123-
Rgb32[] pixelArray = new Rgba32[image.Width * image.Height]
123+
Rgba32[] pixelArray = new Rgba32[image.Width * image.Height]
124124
image.CopyPixelDataTo(pixelArray);
125125
```
126126

0 commit comments

Comments
 (0)