Introduce IImageCreator interface for image creation, and update ImageCreatorSharp to implement it. Add ImageCreatorAlternate (adapter) and ImageCreatorMapper (runtime selector) classes. Extend PicSettings with ImageCreatorProvider to control backend selection. Update DI registrations and refactor ImageCreationStuff to depend on IImageCreator, enabling backend switching via configuration.
9 lines
172 B
C#
9 lines
172 B
C#
using System.Drawing;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MaddoShared;
|
|
|
|
public interface IImageCreator
|
|
{
|
|
Task CreateImageAsync(ImageState imgState, Image logo);
|
|
}
|