zoukankan      html  css  js  c++  java
  • .net CombinedGeometry的合并模式

    <Page

      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

      <Canvas>  

        <Path Fill="LightGreen" Stroke="Green" StrokeThickness="3">

          <Path.Data>

          <GeometryGroup>

            <CombinedGeometry GeometryCombineMode="Union">

              <CombinedGeometry.Geometry1><EllipseGeometry Center="120 120" RadiusX="100" RadiusY="100"/></CombinedGeometry.Geometry1>

              <CombinedGeometry.Geometry2><EllipseGeometry Center="220 120" RadiusX="100" RadiusY="100"/></CombinedGeometry.Geometry2>

            </CombinedGeometry>

            <CombinedGeometry GeometryCombineMode="Intersect">

              <CombinedGeometry.Geometry1><EllipseGeometry Center="440 120" RadiusX="100" RadiusY="100"/></CombinedGeometry.Geometry1>

              <CombinedGeometry.Geometry2><EllipseGeometry Center="540 120" RadiusX="100" RadiusY="100"/></CombinedGeometry.Geometry2>

            </CombinedGeometry>

            <CombinedGeometry GeometryCombineMode="Xor">

              <CombinedGeometry.Geometry1><EllipseGeometry Center="120 340" RadiusX="100" RadiusY="100"/></CombinedGeometry.Geometry1>

              <CombinedGeometry.Geometry2><EllipseGeometry Center="220 340" RadiusX="100" RadiusY="100"/></CombinedGeometry.Geometry2>

            </CombinedGeometry>

            <CombinedGeometry GeometryCombineMode="Exclude">

              <CombinedGeometry.Geometry1><EllipseGeometry Center="440 340" RadiusX="100" RadiusY="100"/></CombinedGeometry.Geometry1>

              <CombinedGeometry.Geometry2><EllipseGeometry Center="540 340" RadiusX="100" RadiusY="100"/></CombinedGeometry.Geometry2>

            </CombinedGeometry>

            </GeometryGroup>

          </Path.Data>

        </Path>

        <TextBlock Canvas.Left="150" Canvas.Top="120" Text="Union" />

        <TextBlock Canvas.Left="465" Canvas.Top="120" Text="Intersect" />

        <TextBlock Canvas.Left="80" Canvas.Top="335" Text="Xor" />

        <TextBlock Canvas.Left="240" Canvas.Top="335" Text="Xor" />

        <TextBlock Canvas.Left="385" Canvas.Top="335" Text="Exclude" />

      </Canvas>

    </Page>

  • 相关阅读:
    Docker入门之二镜像
    巧用Freemarker的自定义方法
    freemarker空值的多种处理方法
    ContextLoaderListener与DispatcherServlet所加载的applicationContext的区别
    Mingyang.net:自定义FreeMarkerView
    hibernate one-to-many many-to-one 双向注解
    Mingyang.net:Controller必需是public吗?
    Mingyang.net:org.springframework.context.annotation.ConflictingBeanDefinitionException
    Mingyang.net:No identifier specified for entity
    jQuery:find()及children()的区别
  • 原文地址:https://www.cnblogs.com/aoldman/p/3276840.html
Copyright © 2011-2022 走看看