Avalonia icon indicating copy to clipboard operation
Avalonia copied to clipboard

Add DrawingBrush

Open billhenn opened this issue 1 year ago • 2 comments

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?

billhenn avatar Oct 22 '22 01:10 billhenn

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).

maxkatz6 avatar Oct 23 '22 05:10 maxkatz6

IImage sounds like a good idea. Probably not too difficult to implement.

timunie avatar Oct 23 '22 10:10 timunie