Ejemplo n.º 1
0
        public static IImage CorrectOrientation(IImage image, ImageOrientation orientation)
        {
            if (orientation.Angle == 0 && orientation.Mirroring == ImageMirroring.None)
                return image;

            image.ReorientInPlace(orientation.Invert());
            return image;
        }
Ejemplo n.º 2
0
        public bool Equals(ImageOrientation other)
        {
            if (other == null)
                return false;

            if (other == this)
                return true;

            return other.Angle == this.Angle
                && other.Mirroring == this.Mirroring;
        }