From 6a8cdf17b9046c43b4b38cb40757a16ba18670bd Mon Sep 17 00:00:00 2001 From: Jason Dove <1695733+jasongdove@users.noreply.github.com> Date: Thu, 9 Jul 2026 12:56:42 -0500 Subject: [PATCH] chore: update skia sharp --- ErsatzTV.Core/ErsatzTV.Core.csproj | 4 ++-- ErsatzTV.Core/Images/ChannelLogoGenerator.cs | 2 +- .../ErsatzTV.Infrastructure.csproj | 2 +- .../Streaming/Graphics/GraphicsEngine.cs | 12 ++++++++++-- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/ErsatzTV.Core/ErsatzTV.Core.csproj b/ErsatzTV.Core/ErsatzTV.Core.csproj index 4204e9933..02be50aed 100644 --- a/ErsatzTV.Core/ErsatzTV.Core.csproj +++ b/ErsatzTV.Core/ErsatzTV.Core.csproj @@ -25,8 +25,8 @@ - - + + diff --git a/ErsatzTV.Core/Images/ChannelLogoGenerator.cs b/ErsatzTV.Core/Images/ChannelLogoGenerator.cs index 4f6504a90..e2466ab57 100644 --- a/ErsatzTV.Core/Images/ChannelLogoGenerator.cs +++ b/ErsatzTV.Core/Images/ChannelLogoGenerator.cs @@ -31,7 +31,7 @@ public class ChannelLogoGenerator : IChannelLogoGenerator //etv logo string overlayImagePath = Path.Combine("wwwroot", "images", "ersatztv-500.png"); using var overlayImage = SKBitmap.Decode(overlayImagePath); - canvas.DrawBitmap(overlayImage, new SKRect(155, 60, 205, 110)); + canvas.DrawBitmap(overlayImage, new SKRect(155, 60, 205, 110), SKSamplingOptions.Default); //Custom Font string fontPath = Path.Combine(FileSystemLayout.ResourcesCacheFolder, "Sen.ttf"); diff --git a/ErsatzTV.Infrastructure/ErsatzTV.Infrastructure.csproj b/ErsatzTV.Infrastructure/ErsatzTV.Infrastructure.csproj index 8991d7f59..f4cf012a5 100644 --- a/ErsatzTV.Infrastructure/ErsatzTV.Infrastructure.csproj +++ b/ErsatzTV.Infrastructure/ErsatzTV.Infrastructure.csproj @@ -36,7 +36,7 @@ - + diff --git a/ErsatzTV.Infrastructure/Streaming/Graphics/GraphicsEngine.cs b/ErsatzTV.Infrastructure/Streaming/Graphics/GraphicsEngine.cs index 9e8dc9bcb..fa7697850 100644 --- a/ErsatzTV.Infrastructure/Streaming/Graphics/GraphicsEngine.cs +++ b/ErsatzTV.Infrastructure/Streaming/Graphics/GraphicsEngine.cs @@ -190,12 +190,20 @@ public class GraphicsEngine( SKColors.White.WithAlpha((byte)(preparedImage.Opacity * 255)), SKBlendMode.Modulate); paint.ColorFilter = colorFilter; - canvas.DrawBitmap(preparedImage.Image, preparedImage.Point, paint); + canvas.DrawBitmap( + preparedImage.Image, + preparedImage.Point, + SKSamplingOptions.Default, + paint); } else { paint.ColorFilter = null; - canvas.DrawBitmap(preparedImage.Image, preparedImage.Point, paint); + canvas.DrawBitmap( + preparedImage.Image, + preparedImage.Point, + SKSamplingOptions.Default, + paint); } if (preparedImage.Dispose)