Browse Source

IImage : IDisposable

af/merge-core
Anton Firszov 8 years ago
parent
commit
dab4d0cae4
  1. 4
      src/ImageSharp/Image/IImage.cs
  2. 2
      src/ImageSharp/Image/Image{TPixel}.cs

4
src/ImageSharp/Image/IImage.cs

@ -1,12 +1,14 @@
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using System;
namespace SixLabors.ImageSharp
{
/// <summary>
/// Encapsulates the properties and methods that describe an image.
/// </summary>
public interface IImage : IImageInfo
public interface IImage : IImageInfo, IDisposable
{
}
}

2
src/ImageSharp/Image/Image{TPixel}.cs

@ -17,7 +17,7 @@ namespace SixLabors.ImageSharp
/// Encapsulates an image, which consists of the pixel data for a graphics image and its attributes.
/// </summary>
/// <typeparam name="TPixel">The pixel format.</typeparam>
public sealed partial class Image<TPixel> : IImage, IDisposable, IConfigurable
public sealed partial class Image<TPixel> : IImage, IConfigurable
where TPixel : struct, IPixel<TPixel>
{
private Configuration configuration;

Loading…
Cancel
Save