当我绘制折线时,我使用图像刷作为笔划。
var bitmapImage = new Windows.UI.Xaml.Media.Imaging.BitmapImage(new Uri("ms-appx:/Assets/br1.png"));
img = new Windows.UI.Xaml.Media.ImageBrush()
{
ImageSource = bitmapImage,
Stretch = Stretch.None,
};
并创建折线:
this._polyline = new Polyline() {
StrokeThickness = 23,
Stroke = img,
};
但是当我在画布中绘制折线时图像会拉伸。我不能重复图像刷,你能帮我吗?