Use file-scoped namespaces in Jellyfin.Drawing.Skia

pull/9065/head
Patrick Barron 1 year ago
parent 6c7225b943
commit cafc454cfb

@ -2,8 +2,8 @@ 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>
@ -33,4 +33,3 @@ namespace Jellyfin.Drawing.Skia
canvas.DrawRect(SKRect.Create(0, (float)endY - IndicatorHeight, Convert.ToInt32(foregroundWidth), endY), paint);
}
}
}

@ -1,8 +1,8 @@
using MediaBrowser.Model.Drawing;
using SkiaSharp;
namespace Jellyfin.Drawing.Skia
{
namespace Jellyfin.Drawing.Skia;
/// <summary>
/// Static helper class for drawing 'played' indicators.
/// </summary>
@ -45,4 +45,3 @@ namespace Jellyfin.Drawing.Skia
canvas.DrawText(Text, (float)x - 12, OffsetFromTopRightCorner + 12, paint);
}
}
}

@ -1,8 +1,8 @@
using System.Globalization;
using SkiaSharp;
namespace Jellyfin.Drawing.Skia
{
namespace Jellyfin.Drawing.Skia;
/// <summary>
/// Represents errors that occur during interaction with Skia codecs.
/// </summary>
@ -42,4 +42,3 @@ namespace Jellyfin.Drawing.Skia
CodecResult,
base.ToString());
}
}

@ -12,8 +12,8 @@ using Microsoft.Extensions.Logging;
using SkiaSharp;
using SKSvg = SkiaSharp.Extended.Svg.SKSvg;
namespace Jellyfin.Drawing.Skia
{
namespace Jellyfin.Drawing.Skia;
/// <summary>
/// Image encoder that uses <see cref="SkiaSharp"/> to manipulate images.
/// </summary>
@ -542,4 +542,3 @@ namespace Jellyfin.Drawing.Skia
}
}
}
}

@ -1,7 +1,7 @@
using System;
namespace Jellyfin.Drawing.Skia
{
namespace Jellyfin.Drawing.Skia;
/// <summary>
/// Represents errors that occur during interaction with Skia.
/// </summary>
@ -36,4 +36,3 @@ namespace Jellyfin.Drawing.Skia
{
}
}
}

@ -1,8 +1,8 @@
using System.Collections.Generic;
using SkiaSharp;
namespace Jellyfin.Drawing.Skia
{
namespace Jellyfin.Drawing.Skia;
/// <summary>
/// Class containing helper methods for working with SkiaSharp.
/// </summary>
@ -44,4 +44,3 @@ namespace Jellyfin.Drawing.Skia
return bitmap;
}
}
}

@ -2,8 +2,8 @@ using System;
using System.Collections.Generic;
using SkiaSharp;
namespace Jellyfin.Drawing.Skia
{
namespace Jellyfin.Drawing.Skia;
/// <summary>
/// Used to build the splashscreen.
/// </summary>
@ -145,4 +145,3 @@ namespace Jellyfin.Drawing.Skia
return bitmap;
}
}
}

@ -4,8 +4,8 @@ using System.IO;
using System.Text.RegularExpressions;
using SkiaSharp;
namespace Jellyfin.Drawing.Skia
{
namespace Jellyfin.Drawing.Skia;
/// <summary>
/// Used to build collages of multiple images arranged in vertical strips.
/// </summary>
@ -183,4 +183,3 @@ namespace Jellyfin.Drawing.Skia
return bitmap;
}
}
}

@ -2,8 +2,8 @@ using System.Globalization;
using MediaBrowser.Model.Drawing;
using SkiaSharp;
namespace Jellyfin.Drawing.Skia
{
namespace Jellyfin.Drawing.Skia;
/// <summary>
/// Static helper class for drawing unplayed count indicators.
/// </summary>
@ -61,4 +61,3 @@ namespace Jellyfin.Drawing.Skia
canvas.DrawText(text, x, y, paint);
}
}
}

Loading…
Cancel
Save