/// <summary> /// Flips the current image either horizontally or vertically. /// </summary> /// <param name="flipVertically"> /// Whether to flip the image vertically. /// </param> /// <returns> /// The current instance of the <see cref="T:ImageProcessor.ImageFactory"/> class. /// </returns> public ImageFactory Flip(bool flipVertically) { if (this.ShouldProcess) { RotateFlipType rotateFlipType = flipVertically == false ? RotateFlipType.RotateNoneFlipX : RotateFlipType.RotateNoneFlipY; Flip flip = new Flip { DynamicParameter = rotateFlipType }; this.Image = flip.ProcessImage(this); } return(this); }
public string Post([FromBody] Flip req) { var response = Flip.ProcessImage(req); return(response); }