set CompositingMode to sourcecopy when possible
This commit is contained in:
parent
9456886848
commit
3c06fc4d1a
|
@ -174,7 +174,7 @@ namespace MediaBrowser.Server.Implementations.Drawing
|
||||||
thumbnailGraph.SmoothingMode = SmoothingMode.HighQuality;
|
thumbnailGraph.SmoothingMode = SmoothingMode.HighQuality;
|
||||||
thumbnailGraph.InterpolationMode = InterpolationMode.HighQualityBicubic;
|
thumbnailGraph.InterpolationMode = InterpolationMode.HighQualityBicubic;
|
||||||
thumbnailGraph.PixelOffsetMode = PixelOffsetMode.HighQuality;
|
thumbnailGraph.PixelOffsetMode = PixelOffsetMode.HighQuality;
|
||||||
thumbnailGraph.CompositingMode = CompositingMode.SourceOver;
|
thumbnailGraph.CompositingMode = string.IsNullOrEmpty(options.BackgroundColor) && !options.PercentPlayed.HasValue && !options.AddPlayedIndicator ? CompositingMode.SourceCopy : CompositingMode.SourceOver;
|
||||||
|
|
||||||
SetBackgroundColor(thumbnailGraph, options);
|
SetBackgroundColor(thumbnailGraph, options);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user