• 路径和几何图形


    直线、矩形、椭圆图像

        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition/>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <Rectangle Fill="LightBlue" Stroke="Blue" Width="100" Height="50"/>
            <Path Fill="Yellow" Stroke="Blue" Grid.Row="1" Margin="5">
                <Path.Data>
                    <!--<RectangleGeometry Rect="200,20,100,50"/>-->
                    <!--<LineGeometry StartPoint="10,13" EndPoint="180,120"/>-->
                    <EllipseGeometry Center="200,70" RadiusX="150" RadiusY="70"/>
                </Path.Data>
            </Path>
        </Grid>

    使用GeometryGroup 组合形状 

    使用CombinedGeometry 组合形状(相互不包含,可以相交)

     使用PathGeometry 绘制曲线和直线

    • LineSegment
    • ArcSegment
    • BezierSegment

    微语言几何图形

    使用几何图形进行剪裁

  • 相关阅读:
    centos 7 和 centoa 8的区别
    centos7制作U盘启动盘
    juypyter notebook安装
    Centos6安装MariaDB
    提job
    report a bug and update
    runtest提交job
    bug
    ps常用选项
    每日一句
  • 原文地址:https://www.cnblogs.com/codinghard/p/15708759.html
Copyright © 2020-2023  润新知