4-Graphics_Animation/13-几何图形和图画-5贝塞尔曲线/MainWindow.xaml

37 lines
1.6 KiB
Plaintext
Raw Normal View History

<Window x:Class="_13_几何图形和图画_5贝塞尔曲线.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Icon="public/bunny.png" Title="13-几何图形和图画-5贝塞尔曲线 P317" Height="450" Width="800">
<Canvas>
<Path Stroke="Blue" StrokeThickness="5" Canvas.Top="20">
<Path.Data>
<PathGeometry>
<PathFigure StartPoint="10,10">
<BezierSegment Point1="130,30" Point2="40,140" Point3="150,150" />
</PathFigure>
</PathGeometry>
</Path.Data>
</Path>
<Path Stroke="Green" StrokeThickness="2" StrokeDashArray="5 2" Canvas.Top="20">
<Path.Data>
<GeometryGroup>
<LineGeometry StartPoint="10,10" EndPoint="130,30" />
<LineGeometry StartPoint="40,140" EndPoint="150,150" />
</GeometryGroup>
</Path.Data>
</Path>
<Path Fill="Red" Stroke="Red" StrokeThickness="8" Canvas.Top="20">
<Path.Data>
<GeometryGroup>
<EllipseGeometry Center="130,30" />
<EllipseGeometry Center="40,140" />
</GeometryGroup>
</Path.Data>
</Path>
</Canvas>
</Window>