コード例 #1
0
 public ImageWithoutCanvasCaptionService(
     IImageCaptionService imageCaptionService,
     IImageRotationService imageRotationService,
     ILogger logger)
 {
     _imageCaptionService  = imageCaptionService;
     _imageRotationService = imageRotationService;
     _logger = logger;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 public ImageWithCanvasService(
     int canvasWidth,
     int canvasHeight,
     IBrightnessService brightnessService,
     IImageCaptionService imageCaptionService,
     ILogger logger)
 {
     // save dependencies
     _brightnessService   = brightnessService;
     _canvasHeight        = canvasHeight;
     _canvasWidth         = canvasWidth;
     _imageCaptionService = imageCaptionService;
     _logger = logger;
 }