Tag: autorotate

如何在ImageResizer中使用autorotate插件

如何在ac#console应用程序中使用AutoRotate插件? 我以为我能做类似settings.AutoRotate = true;事情settings.AutoRotate = true; 就像我可以改变合身模式来使用接缝雕刻插件。 我已经尝试了settings.Add(“autorotate”,”true”)到keycollection,以及其他键名AutoRotate和autoRotate 。 我在一个简单的方法中使用它。 new AutoRotate().Install(ImageResizer.Configuration.Config.Current); … protected static Image ResizeImage(Image image, double scaleFactor) { var settings = new ResizeSettings { Scale = ScaleMode.Both, Width = (int)Math.Floor(Image.Width * scaleFactor), Height = (int)Math.Floor(Image.Height * scaleFactor), Mode = FitMode.None, Format = “png” }; settings.Set(“autorotate”, “true”); return ImageBuilder.Current.Build(image, settings, true); }