From aaa79d18787e0bb42714d4acc113c3183f4a87e9 Mon Sep 17 00:00:00 2001 From: "H. Utku Maden" Date: Sat, 21 Mar 2026 20:05:06 +0300 Subject: [PATCH] Add Image member to image brushes. --- Dashboard.Common/Drawing/Brush.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dashboard.Common/Drawing/Brush.cs b/Dashboard.Common/Drawing/Brush.cs index 9cf3a7f..37a80fd 100644 --- a/Dashboard.Common/Drawing/Brush.cs +++ b/Dashboard.Common/Drawing/Brush.cs @@ -14,11 +14,13 @@ namespace Dashboard.Drawing public class ImageBrush(Image image) : Brush { + public Image Image { get; set; } = image; public Box2d TextureCoordinates { get; set; } = new Box2d(0, 0, 1, 1); } public class NinePatchImageBrush(Image image) : Brush { + public Image Image { get; set; } = image; public Box2d CenterCoordinates { get; set; } = new Box2d(0, 0, 1, 1); public Vector4 Extents { get; set; } = Vector4.Zero; }