private static Size GetTransformedDimensions(Size sourceDimensions, Matrix3x2 matrix)
        {
            var sourceRectangle = new Rectangle(0, 0, sourceDimensions.Width, sourceDimensions.Height);

            return(TransformHelpers.GetTransformedBoundingRectangle(sourceRectangle, matrix).Size);
        }
Esempio n. 2
0
 /// <inheritdoc/>
 protected override void AfterImageApply(Image <TPixel> source, Image <TPixel> destination, Rectangle sourceRectangle)
 => TransformHelpers.UpdateDimensionalMetData(destination);
 /// <inheritdoc/>
 protected override Matrix3x2 GetProcessingMatrix(Rectangle sourceRectangle, Rectangle destinationRectangle)
 => TransformHelpers.GetCenteredTransformMatrix(sourceRectangle, destinationRectangle, this.TransformMatrix);
 /// <inheritdoc/>
 protected override Matrix4x4 GetProcessingMatrix(Rectangle sourceRectangle, Rectangle destinationRectangle)
 {
     return(TransformHelpers.GetCenteredTransformMatrix(sourceRectangle, destinationRectangle, this.TransformMatrix));
 }