diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-12-08 23:57:18 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-12-08 23:57:18 -0500 |
| commit | 4548e6598def249d4b0fe4f4f12e2fa16d4f1e3c (patch) | |
| tree | 781febcb168647c37f027e7893adbb1b9c3dbfc1 /MediaBrowser.Server.Implementations/Drawing/ImageExtensions.cs | |
| parent | 5eb44c42c586af34dd16efc76240d0d6c8e02069 (diff) | |
support dvd without video_ts folder
Diffstat (limited to 'MediaBrowser.Server.Implementations/Drawing/ImageExtensions.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Drawing/ImageExtensions.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/MediaBrowser.Server.Implementations/Drawing/ImageExtensions.cs b/MediaBrowser.Server.Implementations/Drawing/ImageExtensions.cs index d3b8bd371..28ea26a32 100644 --- a/MediaBrowser.Server.Implementations/Drawing/ImageExtensions.cs +++ b/MediaBrowser.Server.Implementations/Drawing/ImageExtensions.cs @@ -18,17 +18,17 @@ namespace MediaBrowser.Server.Implementations.Drawing /// <param name="image">The image.</param> /// <param name="toStream">To stream.</param> /// <param name="quality">The quality.</param> - public static void Save(this Image image, System.Drawing.Imaging.ImageFormat outputFormat, Stream toStream, int quality) + public static void Save(this Image image, ImageFormat outputFormat, Stream toStream, int quality) { // Use special save methods for jpeg and png that will result in a much higher quality image // All other formats use the generic Image.Save - if (System.Drawing.Imaging.ImageFormat.Jpeg.Equals(outputFormat)) + if (ImageFormat.Jpeg.Equals(outputFormat)) { SaveAsJpeg(image, toStream, quality); } - else if (System.Drawing.Imaging.ImageFormat.Png.Equals(outputFormat)) + else if (ImageFormat.Png.Equals(outputFormat)) { - image.Save(toStream, System.Drawing.Imaging.ImageFormat.Png); + image.Save(toStream, ImageFormat.Png); } else { |
