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 5d9e305 commit a58ef4bCopy full SHA for a58ef4b
1 file changed
src/ImageSharp/Formats/Png/PngScanlineProcessor.cs
@@ -180,8 +180,9 @@ public static void ProcessInterlacedPaletteScanline<TPixel>(
180
ref byte scanlineSpanRef = ref MemoryMarshal.GetReference(scanlineSpan);
181
ref TPixel rowSpanRef = ref MemoryMarshal.GetReference(rowSpan);
182
ref Color paletteBase = ref MemoryMarshal.GetReference(palette.Value.Span);
183
+ uint offset = pixelOffset + frameControl.XOffset;
184
- for (nuint x = pixelOffset, o = 0; x < frameControl.XMax; x += increment, o++)
185
+ for (nuint x = offset, o = 0; x < frameControl.XMax; x += increment, o++)
186
{
187
uint index = Unsafe.Add(ref scanlineSpanRef, o);
188
Unsafe.Add(ref rowSpanRef, x) = TPixel.FromRgba32(Unsafe.Add(ref paletteBase, index).ToPixel<Rgba32>());
0 commit comments