当我绘制折线时,我使用画笔作为笔画。
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,
};
但是当我在画布中绘制折线时,图像会拉伸。我不能重复画像,你能帮助我吗?