Browse Source

Make frames resonly

pull/1629/head
James Jackson-South 5 years ago
parent
commit
afee88123c
  1. 2
      src/ImageSharp/Image.cs
  2. 2
      src/ImageSharp/Image{TPixel}.cs

2
src/ImageSharp/Image.cs

@ -99,7 +99,7 @@ namespace SixLabors.ImageSharp
/// </summary> /// </summary>
/// <param name="stream">The stream to save the image to.</param> /// <param name="stream">The stream to save the image to.</param>
/// <param name="encoder">The encoder to save the image with.</param> /// <param name="encoder">The encoder to save the image with.</param>
/// <exception cref="System.ArgumentNullException">Thrown if the stream or encoder is null.</exception> /// <exception cref="ArgumentNullException">Thrown if the stream or encoder is null.</exception>
public void Save(Stream stream, IImageEncoder encoder) public void Save(Stream stream, IImageEncoder encoder)
{ {
Guard.NotNull(stream, nameof(stream)); Guard.NotNull(stream, nameof(stream));

2
src/ImageSharp/Image{TPixel}.cs

@ -23,7 +23,7 @@ namespace SixLabors.ImageSharp
public sealed class Image<TPixel> : Image public sealed class Image<TPixel> : Image
where TPixel : unmanaged, IPixel<TPixel> where TPixel : unmanaged, IPixel<TPixel>
{ {
private ImageFrameCollection<TPixel> frames; private readonly ImageFrameCollection<TPixel> frames;
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="Image{TPixel}"/> class /// Initializes a new instance of the <see cref="Image{TPixel}"/> class

Loading…
Cancel
Save