コード例 #1
0
 private int GetRotationFromImage(Bitmap bitmap)
 {
     var exif = new EXIFextractor(ref bitmap, "n");
     switch (int.Parse(exif["Orientation"].ToString()))
     {
         case 3:
             return 180;
         case 6:
             return 90;
         case 8:
             return 270;
         default:
             return 0;
     }
 }
コード例 #2
0
        private int GetRotationFromImage(Bitmap bitmap)
        {
            var exif = new EXIFextractor(ref bitmap, "n");

            switch (int.Parse(exif["Orientation"].ToString()))
            {
            case 3:
                return(180);

            case 6:
                return(90);

            case 8:
                return(270);

            default:
                return(0);
            }
        }