public ImageWithoutCanvasCaptionService( IImageCaptionService imageCaptionService, IImageRotationService imageRotationService, ILogger logger) { _imageCaptionService = imageCaptionService; _imageRotationService = imageRotationService; _logger = logger; }
public ImageWithCanvasCaptionService( int?canvasHeight, int?canvasWidth, IImageCaptionService imageCaptionService, IImageRotationService imageRotationService, ILogger logger) { _canvasHeight = canvasHeight ?? throw new ArgumentNullException(nameof(canvasHeight)); _canvasWidth = canvasWidth ?? throw new ArgumentNullException(nameof(canvasWidth)); _imageCaptionService = imageCaptionService; _imageRotationService = imageRotationService; _logger = logger; }
public ImageWithCanvasService( int canvasWidth, int canvasHeight, IBrightnessService brightnessService, IImageCaptionService imageCaptionService, ILogger logger) { // save dependencies _brightnessService = brightnessService; _canvasHeight = canvasHeight; _canvasWidth = canvasWidth; _imageCaptionService = imageCaptionService; _logger = logger; }