//
// Copyright (c) James Jackson-South and contributors.
// Licensed under the Apache License, Version 2.0.
//
namespace ImageSharp.Tests
{
using System;
public abstract partial class TestImageProvider
where TColor : struct, IPixel
{
private class BlankProvider : TestImageProvider
{
public BlankProvider(int width, int height)
{
this.Width = width;
this.Height = height;
}
public override string SourceFileOrDescription => $"Blank{this.Width}x{this.Height}";
protected int Height { get; }
protected int Width { get; }
public override Image GetImage() => this.Factory.CreateImage(this.Width, this.Height);
}
}
}