コード例 #1
0
ファイル: ImageProcessor.cs プロジェクト: ashmind/gallery
        public static IImage CorrectOrientation(IImage image, ImageOrientation orientation)
        {
            if (orientation.Angle == 0 && orientation.Mirroring == ImageMirroring.None)
                return image;

            image.ReorientInPlace(orientation.Invert());
            return image;
        }
コード例 #2
0
ファイル: ImageOrientation.cs プロジェクト: ashmind/gallery
        public bool Equals(ImageOrientation other)
        {
            if (other == null)
                return false;

            if (other == this)
                return true;

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