aboutsummaryrefslogtreecommitdiff
path: root/Emby.Drawing/GDI
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-08-25 00:54:06 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-08-25 00:54:06 -0400
commitf5a6a418f58b26f49ff8fc17c32e391f79565105 (patch)
treeb47d0dce1bf8fd25ad7b9c5d807be3f8cb261b92 /Emby.Drawing/GDI
parentdc09bb8c0847cec812364ee6f32be055741e76dc (diff)
update scaling with MaxHeight
Diffstat (limited to 'Emby.Drawing/GDI')
-rw-r--r--Emby.Drawing/GDI/DynamicImageHelpers.cs4
-rw-r--r--Emby.Drawing/GDI/GDIImageEncoder.cs8
2 files changed, 7 insertions, 5 deletions
diff --git a/Emby.Drawing/GDI/DynamicImageHelpers.cs b/Emby.Drawing/GDI/DynamicImageHelpers.cs
index e0ce901200..59340af8a9 100644
--- a/Emby.Drawing/GDI/DynamicImageHelpers.cs
+++ b/Emby.Drawing/GDI/DynamicImageHelpers.cs
@@ -34,7 +34,7 @@ namespace Emby.Drawing.GDI
graphics.InterpolationMode = InterpolationMode.HighQualityBicubic;
graphics.PixelOffsetMode = PixelOffsetMode.HighQuality;
- // This causes the image to be blank in OSX
+ // SourceCopy causes the image to be blank in OSX
//graphics.CompositingMode = CompositingMode.SourceCopy;
for (var row = 0; row < rows; row++)
@@ -83,7 +83,7 @@ namespace Emby.Drawing.GDI
graphics.InterpolationMode = InterpolationMode.HighQualityBicubic;
graphics.PixelOffsetMode = PixelOffsetMode.HighQuality;
- // This causes the image to be blank in OSX
+ // SourceCopy causes the image to be blank in OSX
//graphics.CompositingMode = CompositingMode.SourceCopy;
for (var row = 0; row < rows; row++)
diff --git a/Emby.Drawing/GDI/GDIImageEncoder.cs b/Emby.Drawing/GDI/GDIImageEncoder.cs
index bdd1c5a22f..afd16899dc 100644
--- a/Emby.Drawing/GDI/GDIImageEncoder.cs
+++ b/Emby.Drawing/GDI/GDIImageEncoder.cs
@@ -119,9 +119,11 @@ namespace Emby.Drawing.GDI
thumbnailGraph.SmoothingMode = SmoothingMode.HighQuality;
thumbnailGraph.InterpolationMode = InterpolationMode.HighQualityBicubic;
thumbnailGraph.PixelOffsetMode = PixelOffsetMode.HighQuality;
- thumbnailGraph.CompositingMode = !hasPostProcessing ?
- CompositingMode.SourceCopy :
- CompositingMode.SourceOver;
+
+ // SourceCopy causes the image to be blank in OSX
+ //thumbnailGraph.CompositingMode = !hasPostProcessing ?
+ // CompositingMode.SourceCopy :
+ // CompositingMode.SourceOver;
SetBackgroundColor(thumbnailGraph, options);