We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 417667a commit d933db7Copy full SHA for d933db7
src/ImageSharp/Formats/Png/PngScanlineProcessor.cs
@@ -198,8 +198,9 @@ public static void ProcessInterlacedPaletteScanline<TPixel>(
198
ref byte scanlineSpanRef = ref MemoryMarshal.GetReference(scanlineSpan);
199
ref TPixel rowSpanRef = ref MemoryMarshal.GetReference(rowSpan);
200
ref Color paletteBase = ref MemoryMarshal.GetReference(palette.Value.Span);
201
+ uint offset = pixelOffset + frameControl.XOffset;
202
- for (nuint x = pixelOffset, o = 0; x < frameControl.XMax; x += increment, o++)
203
+ for (nuint x = offset, o = 0; x < frameControl.XMax; x += increment, o++)
204
{
205
uint index = Unsafe.Add(ref scanlineSpanRef, o);
206
pixel.FromRgba32(Unsafe.Add(ref paletteBase, index).ToRgba32());
0 commit comments