Skip to content

Commit

Permalink
Update PngDecoderCore.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
JimBobSquarePants committed Mar 6, 2024
1 parent e74a55f commit 3ea2574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ImageSharp/Formats/Png/PngDecoderCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ private void ReadGammaChunk(PngMetadata pngMetadata, ReadOnlySpan<byte> data)
private void InitializeImage<TPixel>(ImageMetadata metadata, out Image<TPixel> image)
where TPixel : unmanaged, IPixel<TPixel>
{
image = Image.CreateUninitialized<TPixel>(
image = new Image<TPixel>(
this.Configuration,
this.header.Width,
this.header.Height,
Expand Down

0 comments on commit 3ea2574

Please sign in to comment.