/// <summary> /// Initializes a new instance of the <see cref="VignetteProcessor{TPixel}"/> class. /// </summary> /// <param name="definition">The <see cref="VignetteProcessor"/> defining the processor parameters.</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 VignetteProcessor(VignetteProcessor definition, Image <TPixel> source, Rectangle sourceRectangle) : base(source, sourceRectangle) { this.definition = definition; this.blender = PixelOperations <TPixel> .Instance.GetPixelBlender(definition.GraphicsOptions); }
public VignetteProcessor(VignetteProcessor definition) { this.definition = definition; this.blender = PixelOperations <TPixel> .Instance.GetPixelBlender(definition.GraphicsOptions); }