diff options
| author | Erwin de Haan <EraYaN@users.noreply.github.com> | 2019-01-03 21:29:48 +0100 |
|---|---|---|
| committer | Erwin de Haan <EraYaN@users.noreply.github.com> | 2019-01-03 21:29:48 +0100 |
| commit | d15af6eb35c782b0f150fc67bf0f2b0566d86edc (patch) | |
| tree | e5c38d9294f2f97fb25d1aa9e7d19a8e3a65eb08 /Emby.Drawing.Net/PlayedIndicatorDrawer.cs | |
| parent | 86275bcc55cfe6cf6798d152a53f79c6f7811b52 (diff) | |
Removed all old and unused ImageEncoders.
Remove solution platform cruft.
Diffstat (limited to 'Emby.Drawing.Net/PlayedIndicatorDrawer.cs')
| -rw-r--r-- | Emby.Drawing.Net/PlayedIndicatorDrawer.cs | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/Emby.Drawing.Net/PlayedIndicatorDrawer.cs b/Emby.Drawing.Net/PlayedIndicatorDrawer.cs deleted file mode 100644 index 53683e6f4..000000000 --- a/Emby.Drawing.Net/PlayedIndicatorDrawer.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System.Drawing; - -namespace Emby.Drawing.Net -{ - public class PlayedIndicatorDrawer - { - private const int IndicatorHeight = 40; - public const int IndicatorWidth = 40; - private const int FontSize = 40; - private const int OffsetFromTopRightCorner = 10; - - public void DrawPlayedIndicator(Graphics graphics, Size imageSize) - { - var x = imageSize.Width - IndicatorWidth - OffsetFromTopRightCorner; - - using (var backdroundBrush = new SolidBrush(Color.FromArgb(225, 82, 181, 75))) - { - graphics.FillEllipse(backdroundBrush, x, OffsetFromTopRightCorner, IndicatorWidth, IndicatorHeight); - - x = imageSize.Width - 45 - OffsetFromTopRightCorner; - - using (var font = new Font("Webdings", FontSize, FontStyle.Regular, GraphicsUnit.Pixel)) - { - using (var fontBrush = new SolidBrush(Color.White)) - { - graphics.DrawString("a", font, fontBrush, x, OffsetFromTopRightCorner - 2); - } - } - } - } - } -} |
