/// <summary> /// Constructor with parameters. /// </summary> /// <param name="mode"> /// mode can be 0 for fast (nearest pixel) method, /// 1 for accurate (bicubic spline interpolation) method, /// or 2 for slow (bilinear) method.</param> /// <param name="newx">New width.</param> /// <param name="newy">New height.</param> public Resample(int newx, int newy, Cip.Transformations.CipInterpolationMode mode) { this.newx = newx; this.newy = newy; this.mode = mode; }
/// <summary> /// Constructor with parameters. /// </summary> /// <param name="mode"> /// mode can be 0 for fast (nearest pixel) method, /// 1 for accurate (bicubic spline interpolation) method, /// or 2 for slow (bilinear) method.</param> /// <param name="newSize">New size.</param> public Resample(System.Drawing.Size newSize, Cip.Transformations.CipInterpolationMode mode) { this.newx = newSize.Width; this.newy = newSize.Height; this.mode = mode; }