diff options
| author | Eric Reed <ebr@mediabrowser3.com> | 2013-06-20 12:19:55 -0400 |
|---|---|---|
| committer | Eric Reed <ebr@mediabrowser3.com> | 2013-06-20 12:19:55 -0400 |
| commit | a8d070d07bc59979eb6531bf56c1bbdb0e6a9df3 (patch) | |
| tree | 2a7fa8357c63397e95df0a072cea5e3d6564c15b /MediaBrowser.Controller/Drawing/ImageExtensions.cs | |
| parent | b02287c0dd6d2f58b4559ae05a9972665ea13521 (diff) | |
| parent | 6f15aeccd0946f19145cc063a8982d585b77df91 (diff) | |
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
Diffstat (limited to 'MediaBrowser.Controller/Drawing/ImageExtensions.cs')
| -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; } |
