Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/277.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# stroke imagebrush windows应用商店应用程序_C#_Windows Store Apps_Imagebrush - Fatal编程技术网

C# stroke imagebrush windows应用商店应用程序

C# stroke imagebrush windows应用商店应用程序,c#,windows-store-apps,imagebrush,C#,Windows Store Apps,Imagebrush,我在绘制多段线时使用imagebrush作为笔划 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 =

我在绘制多段线时使用imagebrush作为笔划

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,                  

        };
但当我在画布上绘制多段线时,图像会拉伸。我不能重复了,你能帮我吗