Add Image member to image brushes.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user