From d2494148f78d258ea59809c3b296234bdc64d73a Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 28 Aug 2014 00:32:45 -0400 Subject: Support webp image output --- MediaBrowser.Controller/Drawing/ImageExtensions.cs | 33 ---------------------- 1 file changed, 33 deletions(-) (limited to 'MediaBrowser.Controller/Drawing/ImageExtensions.cs') diff --git a/MediaBrowser.Controller/Drawing/ImageExtensions.cs b/MediaBrowser.Controller/Drawing/ImageExtensions.cs index c7e1968e7..2511659c3 100644 --- a/MediaBrowser.Controller/Drawing/ImageExtensions.cs +++ b/MediaBrowser.Controller/Drawing/ImageExtensions.cs @@ -71,39 +71,6 @@ namespace MediaBrowser.Controller.Drawing return Encoders.Length == 0 ? null : Encoders[0]; } - /// - /// Determines whether [is pixel format supported by graphics object] [the specified format]. - /// - /// The format. - /// true if [is pixel format supported by graphics object] [the specified format]; otherwise, false. - public static bool IsPixelFormatSupportedByGraphicsObject(PixelFormat format) - { - // http://msdn.microsoft.com/en-us/library/system.drawing.graphics.fromimage.aspx - - if ((format & PixelFormat.Indexed) == PixelFormat.Indexed) - { - return false; - } - if ((format & PixelFormat.Undefined) == PixelFormat.Undefined) - { - return false; - } - if ((format & PixelFormat.DontCare) == PixelFormat.DontCare) - { - return false; - } - if ((format & PixelFormat.Format16bppArgb1555) == PixelFormat.Format16bppArgb1555) - { - return false; - } - if ((format & PixelFormat.Format16bppGrayScale) == PixelFormat.Format16bppGrayScale) - { - return false; - } - - return true; - } - /// /// Crops an image by removing whitespace and transparency from the edges /// -- cgit v1.2.3