The Free Software Media System - Server Backend & API
update collage builder
Luke Pulverentibdf27b81c158
diff --git a/Emby.Drawing.Skia/StripCollageBuilder.cs b/Emby.Drawing.Skia/StripCollageBuilder.csindex 7f37007697..0ffc6df104 100644--- a/Emby.Drawing.Skia/StripCollageBuilder.cs+++ b/Emby.Drawing.Skia/StripCollageBuilder.cs@@ -96,16 +96,30 @@ namespace Emby.Drawing.Skiausing (var croppedBitmap = SKBitmap.FromImage(subset)){- using (var flipped = new SKBitmap(croppedBitmap.Width, croppedBitmap.Height / 2, croppedBitmap.ColorType, croppedBitmap.AlphaType))+ using (var reflectionBitmap = new SKBitmap(croppedBitmap.Width, croppedBitmap.Height / 2, croppedBitmap.ColorType, croppedBitmap.AlphaType)){- croppedBitmap.Resize(flipped, SKBitmapResizeMethod.Lanczos3);+ croppedBitmap.Resize(reflectionBitmap, SKBitmapResizeMethod.Lanczos3);- using (var gradient = new SKPaint())+ using (var flippedBitmap = new SKBitmap(reflectionBitmap.Width, reflectionBitmap.Height)){- var matrix = SKMatrix.MakeScale(1, -1);- matrix.SetScaleTranslate(1, -1, 0, flipped.Height);- gradient.Shader = SKShader.CreateLinearGradient(new SKPoint(0, 0), new SKPoint(0, flipped.Height), new[] { new SKColor(0, 0, 0, 0), SKColors.Black }, null, SKShaderTileMode.Clamp, matrix);- canvas.DrawBitmap(flipped, (horizontalImagePadding * (i + 1)) + (iSlice * i), iHeight + verticalSpacing, gradient);+ using (var flippedCanvas = new SKCanvas(flippedBitmap))+ {+ var matrix = SKMatrix.MakeScale(1, -1);+ matrix.SetScaleTranslate(1, -1, 0, flippedBitmap.Height);+ flippedCanvas.SetMatrix(matrix);+ flippedCanvas.DrawBitmap(reflectionBitmap, 0, 0);+ flippedCanvas.ResetMatrix();++ using (var gradient = new SKPaint())+ {+ gradient.IsAntialias = true;+ gradient.BlendMode = SKBlendMode.SrcATop;+ gradient.Shader = SKShader.CreateLinearGradient(new SKPoint(0, 0), new SKPoint(0, flippedBitmap.Height), new[] { new SKColor(0, 0, 0, 0), new SKColor(0, 0, 0, 255) }, null, SKShaderTileMode.Clamp);+ flippedCanvas.DrawPaint(gradient);+ }++ canvas.DrawBitmap(flippedBitmap, (horizontalImagePadding * (i + 1)) + (iSlice * i), iHeight + verticalSpacing);+ }}}}diff --git a/MediaBrowser.Server.Mac/Emby.Server.Mac.csproj b/MediaBrowser.Server.Mac/Emby.Server.Mac.csprojindex 8133efafb8..73626328a2 100644--- a/MediaBrowser.Server.Mac/Emby.Server.Mac.csproj+++ b/MediaBrowser.Server.Mac/Emby.Server.Mac.csproj@@ -122,10 +122,10 @@<HintPath>..\ThirdParty\taglib\TagLib.Portable.dll</HintPath></Reference><Reference Include="SQLitePCLRaw.core">- <HintPath>..\packages\SQLitePCLRaw.core.1.1.2\lib\net45\SQLitePCLRaw.core.dll</HintPath>+ <HintPath>..\packages\SQLitePCLRaw.core.1.1.5\lib\net45\SQLitePCLRaw.core.dll</HintPath></Reference><Reference Include="SQLitePCLRaw.provider.sqlite3">- <HintPath>..\packages\SQLitePCLRaw.provider.sqlite3.net45.1.1.2\lib\net45\SQLitePCLRaw.provider.sqlite3.dll</HintPath>+ <HintPath>..\packages\SQLitePCLRaw.provider.sqlite3.net45.1.1.5\lib\net45\SQLitePCLRaw.provider.sqlite3.dll</HintPath></Reference><Reference Include="Emby.Server.Connect"><HintPath>..\ThirdParty\emby\Emby.Server.Connect.dll</HintPath>