@ -129,14 +129,6 @@ namespace SixLabors.ImageSharp
public abstract Image < TPixel2 > CloneAs < TPixel2 > ( Configuration configuration )
where TPixel2 : struct , IPixel < TPixel2 > ;
/// <summary>
/// Accepts a <see cref="IImageVisitor"/>.
/// Implemented by <see cref="Image{TPixel}"/> invoking <see cref="IImageVisitor.Visit{TPixel}"/>
/// with the pixel type of the image.
/// </summary>
/// <param name="visitor">The visitor.</param>
protected internal abstract void Accept ( IImageVisitor visitor ) ;
/// <summary>
/// Update the size of the image after mutation.
/// </summary>
@ -148,6 +140,14 @@ namespace SixLabors.ImageSharp
/// </summary>
protected abstract void DisposeImpl ( ) ;
/// <summary>
/// Accepts a <see cref="IImageVisitor"/>.
/// Implemented by <see cref="Image{TPixel}"/> invoking <see cref="IImageVisitor.Visit{TPixel}"/>
/// with the pixel type of the image.
/// </summary>
/// <param name="visitor">The visitor.</param>
internal abstract void Accept ( IImageVisitor visitor ) ;
private class EncodeVisitor : IImageVisitor
{
private readonly IImageEncoder encoder ;