mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
To test, scaled down rendering to 25%
This commit is contained in:
1 parent
93cd704c6c
commit
5cdde6e402
5 files changed
+23
-11
No files matched your search
@@ -4,9 +4,14 @@ namespace Artemis.Core.Extensions
|
||||
{
|
||||
public static class RgbRectangleExtensions
|
||||
{
|
||||
public static Rectangle ToDrawingRectangle(this global::RGB.NET.Core.Rectangle rectangle)
|
||||
public static Rectangle ToDrawingRectangle(this global::RGB.NET.Core.Rectangle rectangle, double scale)
|
||||
{
|
||||
return new Rectangle((int) rectangle.X, (int) rectangle.Y, (int) rectangle.Width, (int) rectangle.Height);
|
||||
return new Rectangle(
|
||||
(int) (rectangle.X * scale),
|
||||
(int) (rectangle.Y * scale),
|
||||
(int) (rectangle.Width * scale),
|
||||
(int) (rectangle.Height * scale)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user