mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
WIP - Added a BitmapBrush to replace the GraphicsDecorator
This commit is contained in:
1 parent
fe21bc83da
commit
a2871541b9
15 files changed
+399
-116
No files matched your search
@@ -1,14 +0,0 @@
|
||||
using RGB.NET.Core;
|
||||
using Color = System.Windows.Media.Color;
|
||||
|
||||
namespace Artemis.Core.Extensions
|
||||
{
|
||||
public static class RgbColorExtensions
|
||||
{
|
||||
public static Color ToMediaColor(this global::RGB.NET.Core.Color color)
|
||||
{
|
||||
var (_, r, g, b) = color.GetRGBBytes();
|
||||
return Color.FromRgb(r, g, b);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using RGB.NET.Core;
|
||||
using SkiaSharp;
|
||||
|
||||
namespace Artemis.Core.Extensions
|
||||
{
|
||||
// ReSharper disable once InconsistentNaming - I didn't come up with SKColor
|
||||
public static class SKColorExtensions
|
||||
{
|
||||
public static Color ToRgbColor(this SKColor color)
|
||||
{
|
||||
return new Color(color.Alpha, color.Red, color.Green, color.Blue);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user