diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-06-19 22:22:18 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-06-19 22:22:18 -0400 |
| commit | 4f0872c570fbabfb9b8d694dcf987f7d2bfe79cc (patch) | |
| tree | a7d15184170d9f5f08ab3a0a27b4df43a25a36cb | |
| parent | 830e5c01f1a1f2ffcecfb2926d1fc5eb20e32eca (diff) | |
fix for indexed format images
| -rw-r--r-- | MediaBrowser.Controller/Drawing/ImageExtensions.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/MediaBrowser.Controller/Drawing/ImageExtensions.cs b/MediaBrowser.Controller/Drawing/ImageExtensions.cs index 847c5dbe0..3d3b947a0 100644 --- a/MediaBrowser.Controller/Drawing/ImageExtensions.cs +++ b/MediaBrowser.Controller/Drawing/ImageExtensions.cs @@ -73,23 +73,23 @@ namespace MediaBrowser.Controller.Drawing { // http://msdn.microsoft.com/en-us/library/system.drawing.graphics.fromimage.aspx - if (format == PixelFormat.Indexed) + if ((format & PixelFormat.Indexed) == PixelFormat.Indexed) { return false; } - if (format == PixelFormat.Undefined) + if ((format & PixelFormat.Undefined) == PixelFormat.Undefined) { return false; } - if (format == PixelFormat.DontCare) + if ((format & PixelFormat.DontCare) == PixelFormat.DontCare) { return false; } - if (format == PixelFormat.Format16bppArgb1555) + if ((format & PixelFormat.Format16bppArgb1555) == PixelFormat.Format16bppArgb1555) { return false; } - if (format == PixelFormat.Format16bppGrayScale) + if ((format & PixelFormat.Format16bppGrayScale) == PixelFormat.Format16bppGrayScale) { return false; } |
