public static IImage CorrectOrientation(IImage image, ImageOrientation orientation) { if (orientation.Angle == 0 && orientation.Mirroring == ImageMirroring.None) return image; image.ReorientInPlace(orientation.Invert()); return image; }
public bool Equals(ImageOrientation other) { if (other == null) return false; if (other == this) return true; return other.Angle == this.Angle && other.Mirroring == this.Mirroring; }