Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SkewProcessor"/> class.
 /// </summary>
 /// <param name="degreesX">The angle in degrees to perform the skew along the x-axis.</param>
 /// <param name="degreesY">The angle in degrees to perform the skew along the y-axis.</param>
 /// <param name="sampler">The sampler to perform the skew operation.</param>
 /// <param name="sourceSize">The source image size</param>
 public SkewProcessor(float degreesX, float degreesY, IResampler sampler, Size sourceSize)
     : this(
         TransformUtilities.CreateSkewMatrixDegrees(degreesX, degreesY, sourceSize),
         sampler,
         sourceSize)
 {
     this.DegreesX = degreesX;
     this.DegreesY = degreesY;
 }
Beispiel #2
0
 // Helper constructor:
 private SkewProcessor(Matrix3x2 skewMatrix, IResampler sampler, Size sourceSize)
     : base(skewMatrix, sampler, TransformUtilities.GetTransformedSize(sourceSize, skewMatrix))
 {
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RotateProcessor"/> class.
 /// </summary>
 /// <param name="degrees">The angle of rotation in degrees.</param>
 /// <param name="sampler">The sampler to perform the rotating operation.</param>
 /// <param name="sourceSize">The source image size</param>
 public RotateProcessor(float degrees, IResampler sampler, Size sourceSize)
     : this(
         TransformUtilities.CreateRotationMatrixDegrees(degrees, sourceSize),
         sampler,
         sourceSize)
     => this.Degrees = degrees;