Esempio n. 1
0
 /// <summary>
 /// Rotates and flips an image by the given instructions.
 /// </summary>
 /// <typeparam name="TPixel">The pixel format.</typeparam>
 /// <param name="source">The image to rotate, flip, or both.</param>
 /// <param name="rotateMode">The <see cref="RotateMode"/> to perform the rotation.</param>
 /// <param name="flipMode">The <see cref="FlipMode"/> to perform the flip.</param>
 /// <returns>The <see cref="Image{TPixel}"/></returns>
 public static IImageProcessingContext <TPixel> RotateFlip <TPixel>(this IImageProcessingContext <TPixel> source, RotateMode rotateMode, FlipMode flipMode)
     where TPixel : struct, IPixel <TPixel>
 => source.Rotate(rotateMode).Flip(flipMode);
Esempio n. 2
0
 /// <summary>
 /// Rotates and flips an image by the given instructions.
 /// </summary>
 /// <typeparam name="TPixel">The pixel format.</typeparam>
 /// <param name="source">The image to rotate, flip, or both.</param>
 /// <param name="rotateType">The <see cref="RotateType"/> to perform the rotation.</param>
 /// <param name="flipType">The <see cref="FlipType"/> to perform the flip.</param>
 /// <returns>The <see cref="Image{TPixel}"/></returns>
 public static IImageProcessingContext <TPixel> RotateFlip <TPixel>(this IImageProcessingContext <TPixel> source, RotateType rotateType, FlipType flipType)
     where TPixel : struct, IPixel <TPixel>
 {
     return(source.Rotate(rotateType).Flip(flipType));
 }
Esempio n. 3
0
 /// <summary>
 /// Rotates and flips an image by the given instructions.
 /// </summary>
 /// <param name="source">The image to rotate, flip, or both.</param>
 /// <param name="rotateMode">The <see cref="RotateMode"/> to perform the rotation.</param>
 /// <param name="flipMode">The <see cref="FlipMode"/> to perform the flip.</param>
 /// <returns>The <see cref="IImageProcessingContext"/> to allow chaining of operations.</returns>
 public static IImageProcessingContext RotateFlip(this IImageProcessingContext source, RotateMode rotateMode, FlipMode flipMode)
 => source.Rotate(rotateMode).Flip(flipMode);