Add Image member to image brushes.

This commit is contained in:
2026-03-21 20:05:06 +03:00
parent f9e374db50
commit aaa79d1878

View File

@@ -14,11 +14,13 @@ namespace Dashboard.Drawing
public class ImageBrush(Image image) : Brush public class ImageBrush(Image image) : Brush
{ {
public Image Image { get; set; } = image;
public Box2d TextureCoordinates { get; set; } = new Box2d(0, 0, 1, 1); public Box2d TextureCoordinates { get; set; } = new Box2d(0, 0, 1, 1);
} }
public class NinePatchImageBrush(Image image) : Brush public class NinePatchImageBrush(Image image) : Brush
{ {
public Image Image { get; set; } = image;
public Box2d CenterCoordinates { get; set; } = new Box2d(0, 0, 1, 1); public Box2d CenterCoordinates { get; set; } = new Box2d(0, 0, 1, 1);
public Vector4 Extents { get; set; } = Vector4.Zero; public Vector4 Extents { get; set; } = Vector4.Zero;
} }