Avalonia
Avalonia copied to clipboard
Add DrawingBrush
I wanted to implement a vector-based tile brush and noticed that a WPF-like DrawingBrush
(where we can provide a geometry) doesn't seem to be available.
Is DrawingBrush
something that is planned to be added?
Alternatively, ImageBrush can be updated to support sources other than IBitmap. For reference, Image class Source accepts IImage, where you can set a drawing.
Workaround for now, either to use VisualBrush or avoid brushes (by replacing them with Image).
IImage sounds like a good idea. Probably not too difficult to implement.