aboutsummaryrefslogtreecommitdiff
path: root/Emby.Drawing/PercentPlayedDrawer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Emby.Drawing/PercentPlayedDrawer.cs')
-rw-r--r--Emby.Drawing/PercentPlayedDrawer.cs31
1 files changed, 0 insertions, 31 deletions
diff --git a/Emby.Drawing/PercentPlayedDrawer.cs b/Emby.Drawing/PercentPlayedDrawer.cs
deleted file mode 100644
index 3ce46bc12..000000000
--- a/Emby.Drawing/PercentPlayedDrawer.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-using System;
-using MediaBrowser.Model.Drawing;
-using SkiaSharp;
-
-namespace Emby.Drawing
-{
- public static class PercentPlayedDrawer
- {
- private const int IndicatorHeight = 8;
-
- public static void Process(SKCanvas canvas, ImageDimensions imageSize, double percent)
- {
- using (var paint = new SKPaint())
- {
- var endX = imageSize.Width - 1;
- var endY = imageSize.Height - 1;
-
- paint.Color = SKColor.Parse("#99000000");
- paint.Style = SKPaintStyle.Fill;
- canvas.DrawRect(SKRect.Create(0, (float)endY - IndicatorHeight, (float)endX, (float)endY), paint);
-
- double foregroundWidth = endX;
- foregroundWidth *= percent;
- foregroundWidth /= 100;
-
- paint.Color = SKColor.Parse("#FF52B54B");
- canvas.DrawRect(SKRect.Create(0, (float)endY - IndicatorHeight, Convert.ToInt32(foregroundWidth), (float)endY), paint);
- }
- }
- }
-}