feat: 13-几何图形和图画-5贝塞尔曲线
This commit is contained in:
parent
6e2b67cbe0
commit
92c806f2d6
|
@ -10,10 +10,8 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Resource Include="public\003540AH4M72.jpg">
|
<Resource Include="public\003540AH4M72.jpg" />
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<Resource Include="public\bunny.png" />
|
||||||
</Resource>
|
|
||||||
<Resource Include="public\bunny.png"/>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>WinExe</OutputType>
|
||||||
|
<TargetFramework>net8.0-windows</TargetFramework>
|
||||||
|
<RootNamespace>_13_几何图形和图画_5贝塞尔曲线</RootNamespace>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<UseWPF>true</UseWPF>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="public\003540AH4M72.jpg"/>
|
||||||
|
<Resource Include="public\bunny.png"/>
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
|
@ -0,0 +1,9 @@
|
||||||
|
<Application x:Class="_13_几何图形和图画_5贝塞尔曲线.App"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:local="clr-namespace:_13_几何图形和图画_5贝塞尔曲线"
|
||||||
|
StartupUri="MainWindow.xaml">
|
||||||
|
<Application.Resources>
|
||||||
|
|
||||||
|
</Application.Resources>
|
||||||
|
</Application>
|
|
@ -0,0 +1,12 @@
|
||||||
|
using System.Configuration;
|
||||||
|
using System.Data;
|
||||||
|
using System.Windows;
|
||||||
|
|
||||||
|
namespace _13_几何图形和图画_5贝塞尔曲线;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Interaction logic for App.xaml
|
||||||
|
/// </summary>
|
||||||
|
public partial class App : Application
|
||||||
|
{
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
using System.Windows;
|
||||||
|
|
||||||
|
[assembly: ThemeInfo(
|
||||||
|
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
|
||||||
|
//(used if a resource is not found in the page,
|
||||||
|
// or application resource dictionaries)
|
||||||
|
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
|
||||||
|
//(used if a resource is not found in the page,
|
||||||
|
// app, or any theme specific resource dictionaries)
|
||||||
|
)]
|
|
@ -0,0 +1,37 @@
|
||||||
|
<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>
|
|
@ -0,0 +1,23 @@
|
||||||
|
using System.Text;
|
||||||
|
using System.Windows;
|
||||||
|
using System.Windows.Controls;
|
||||||
|
using System.Windows.Data;
|
||||||
|
using System.Windows.Documents;
|
||||||
|
using System.Windows.Input;
|
||||||
|
using System.Windows.Media;
|
||||||
|
using System.Windows.Media.Imaging;
|
||||||
|
using System.Windows.Navigation;
|
||||||
|
using System.Windows.Shapes;
|
||||||
|
|
||||||
|
namespace _13_几何图形和图画_5贝塞尔曲线;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Interaction logic for MainWindow.xaml
|
||||||
|
/// </summary>
|
||||||
|
public partial class MainWindow : Window
|
||||||
|
{
|
||||||
|
public MainWindow()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
Binary file not shown.
After Width: | Height: | Size: 97 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.2 MiB |
|
@ -56,6 +56,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "13-几何图形和图画-3
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "13-几何图形和图画-4使用PathGeometry", "13-几何图形和图画-4使用PathGeometry\13-几何图形和图画-4使用PathGeometry.csproj", "{2411C34B-376E-4185-BC14-F0C13A3E84D4}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "13-几何图形和图画-4使用PathGeometry", "13-几何图形和图画-4使用PathGeometry\13-几何图形和图画-4使用PathGeometry.csproj", "{2411C34B-376E-4185-BC14-F0C13A3E84D4}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "13-几何图形和图画-5贝塞尔曲线", "13-几何图形和图画-5贝塞尔曲线\13-几何图形和图画-5贝塞尔曲线.csproj", "{D274249A-5830-4C07-A96C-3817C3F756E7}"
|
||||||
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
@ -174,5 +176,9 @@ Global
|
||||||
{2411C34B-376E-4185-BC14-F0C13A3E84D4}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{2411C34B-376E-4185-BC14-F0C13A3E84D4}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{2411C34B-376E-4185-BC14-F0C13A3E84D4}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{2411C34B-376E-4185-BC14-F0C13A3E84D4}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{2411C34B-376E-4185-BC14-F0C13A3E84D4}.Release|Any CPU.Build.0 = Release|Any CPU
|
{2411C34B-376E-4185-BC14-F0C13A3E84D4}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{D274249A-5830-4C07-A96C-3817C3F756E7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{D274249A-5830-4C07-A96C-3817C3F756E7}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{D274249A-5830-4C07-A96C-3817C3F756E7}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{D274249A-5830-4C07-A96C-3817C3F756E7}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
EndGlobal
|
EndGlobal
|
||||||
|
|
Loading…
Reference in New Issue