|
|
|
@ -2,13 +2,13 @@ using System;
|
|
|
|
|
using MediaBrowser.Model.Drawing;
|
|
|
|
|
using SkiaSharp;
|
|
|
|
|
|
|
|
|
|
namespace Jellyfin.Drawing.Skia
|
|
|
|
|
namespace Jellyfin.Drawing.Skia;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Static helper class used to draw percentage-played indicators on images.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static class PercentPlayedDrawer
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Static helper class used to draw percentage-played indicators on images.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static class PercentPlayedDrawer
|
|
|
|
|
{
|
|
|
|
|
private const int IndicatorHeight = 8;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
@ -32,5 +32,4 @@ namespace Jellyfin.Drawing.Skia
|
|
|
|
|
paint.Color = SKColor.Parse("#FF00A4DC");
|
|
|
|
|
canvas.DrawRect(SKRect.Create(0, (float)endY - IndicatorHeight, Convert.ToInt32(foregroundWidth), endY), paint);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|