/// <summary> /// Initializes a new instance of the <see cref="CropProcessor{TPixel}"/> class. /// </summary> /// <param name="configuration">The configuration which allows altering default behaviour or extending the library.</param> /// <param name="definition">The <see cref="CropProcessor"/>.</param> /// <param name="source">The source <see cref="Image{TPixel}"/> for the current processor instance.</param> /// <param name="sourceRectangle">The source area to process for the current processor instance.</param> public CropProcessor(Configuration configuration, CropProcessor definition, Image <TPixel> source, Rectangle sourceRectangle) : base(configuration, source, sourceRectangle) => this.cropRectangle = definition.CropRectangle;
/// <summary> /// Initializes a new instance of the <see cref="CropProcessor{TPixel}"/> class. /// </summary> /// <param name="definition">The <see cref="CropProcessor"/>.</param> /// <param name="source">The source <see cref="Image{TPixel}"/> for the current processor instance.</param> /// <param name="sourceRectangle">The source area to process for the current processor instance.</param> public CropProcessor(CropProcessor definition, Image <TPixel> source, Rectangle sourceRectangle) : base(source, sourceRectangle) { this.definition = definition; }
/// <summary> /// Initializes a new instance of the <see cref="CropProcessor{TPixel}"/> class. /// </summary> /// <param name="definition">The <see cref="CropProcessor"/>.</param> public CropProcessor(CropProcessor definition) { this.definition = definition; }