/// <summary> /// Initializes a new instance of the <see cref="AffineTransformProcessor{TPixel}"/> class. /// </summary> /// <param name="configuration">The configuration which allows altering default behaviour or extending the library.</param> /// <param name="definition">The <see cref="AffineTransformProcessor"/> 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 AffineTransformProcessor(Configuration configuration, AffineTransformProcessor definition, Image <TPixel> source, Rectangle sourceRectangle) : base(configuration, source, sourceRectangle) { this.destinationSize = definition.DestinationSize; this.transformMatrix = definition.TransformMatrix; this.resampler = definition.Sampler; }
/// <summary> /// Initializes a new instance of the <see cref="AffineTransformProcessor{TPixel}"/> class. /// </summary> /// <param name="definition">The <see cref="AffineTransformProcessor"/> 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 AffineTransformProcessor(AffineTransformProcessor definition, Image <TPixel> source, Rectangle sourceRectangle) : base(source, sourceRectangle) { this.targetSize = definition.TargetDimensions; this.transformMatrix = definition.TransformMatrix; this.resampler = definition.Sampler; }
public AffineTransformProcessor(AffineTransformProcessor definition) { this.Definition = definition; }
/// <summary> /// Initializes a new instance of the <see cref="AffineTransformProcessor{TPixel}"/> class. /// </summary> /// <param name="definition">The <see cref="AffineTransformProcessor"/> 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 AffineTransformProcessor(AffineTransformProcessor definition, Image <TPixel> source, Rectangle sourceRectangle) : base(source, sourceRectangle) { this.Definition = definition; }