Performs auto-rotation to ensure that EXIF defined rotation is reflected in the final image.
Inheritance: IGraphicsProcessor
        /// <summary>
        /// Performs auto-rotation to ensure that EXIF defined rotation is reflected in 
        /// the final image.
        /// </summary>
        /// <returns>
        /// The current instance of the <see cref="T:ImageProcessor.ImageFactory"/> class.
        /// </returns>
        public ImageFactory AutoRotate()
        {
            if (this.ShouldProcess)
            {
                AutoRotate autoRotate = new AutoRotate();
                this.CurrentImageFormat.ApplyProcessor(autoRotate.ProcessImage, this);
            }

            return this;
        }
Example #2
0
        /// <summary>
        /// Performs auto-rotation to ensure that EXIF defined rotation is reflected in 
        /// the final image.
        /// </summary>
        /// <returns>
        /// The current instance of the <see cref="T:ImageProcessor.ImageFactory"/> class.
        /// </returns>
        public ImageFactory AutoRotate()
        {
            if (this.ShouldProcess)
            {
                AutoRotate autoRotate = new AutoRotate();
                this.ApplyProcessor(autoRotate.ProcessImage);
            }

            return this;
        }