Skip to content

Commit

Permalink
Merge pull request #1906 from SixLabors/js/public-pixelbuffer
Browse files Browse the repository at this point in the history
Expose ImageFrame<TPixel>.PixelBuffer
  • Loading branch information
JimBobSquarePants committed Dec 21, 2021
2 parents 04f64b6 + 981ff69 commit 4cb36e6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/ImageSharp/ImageFrame{TPixel}.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,8 @@ internal ImageFrame(Configuration configuration, ImageFrame<TPixel> source)
source.PixelBuffer.FastMemoryGroup.CopyTo(this.PixelBuffer.FastMemoryGroup);
}

/// <summary>
/// Gets the image pixels. Not private as Buffer2D requires an array in its constructor.
/// </summary>
internal Buffer2D<TPixel> PixelBuffer { get; private set; }

/// <inheritdoc/>
Buffer2D<TPixel> IPixelSource<TPixel>.PixelBuffer => this.PixelBuffer;
public Buffer2D<TPixel> PixelBuffer { get; private set; }

/// <summary>
/// Gets or sets the pixel at the specified position.
Expand Down

0 comments on commit 4cb36e6

Please sign in to comment.