GeometryCombineMode Enumerazione
Definizione
Specifica i diversi metodi in base ai quali è possibile combinare due geometrie.Specifies the different methods by which two geometries can be combined.
public enum class GeometryCombineMode
public enum GeometryCombineMode
type GeometryCombineMode =
Public Enum GeometryCombineMode
- Ereditarietà
Campi
Exclude | 3 | La seconda geometria viene esclusa dalla prima.The second region is excluded from the first. Considerando due geometrie, |
Intersect | 1 | Le due geometrie vengono combinate rilevandone l'intersezione.The two regions are combined by taking their intersection. La nuova area è costituita dall'area sovrapposta tra le due geometrie.The new area consists of the overlapping region between the two geometries. |
Union | 0 | Le due geometrie vengono combinate prendendone i punti in comune.The two regions are combined by taking the union of both. La geometria risultante è uguale ad |
Xor | 2 | Le due geometrie vengono combinate prendendo l'area che esiste nella prima non nella seconda e l'area che esiste nella seconda ma non nella prima.The two regions are combined by taking the area that exists in the first region but not the second and the area that exists in the second region but not the first. La nuova area è costituita da |
Esempio
Nell'esempio seguente viene illustrato come combinare due geometrie usando la modalità di combinazione Unione.The following example shows how to combine two geometries using the Union combine mode.
<Path Stroke="Black" StrokeThickness="1" Fill="#CCCCFF">
<Path.Data>
<!-- Combines two geometries using the union combine mode. -->
<CombinedGeometry GeometryCombineMode="Union">
<CombinedGeometry.Geometry1>
<EllipseGeometry RadiusX="50" RadiusY="50" Center="75,75" />
</CombinedGeometry.Geometry1>
<CombinedGeometry.Geometry2>
<EllipseGeometry RadiusX="50" RadiusY="50" Center="125,75" />
</CombinedGeometry.Geometry2>
</CombinedGeometry>
</Path.Data>
</Path>
Commenti
Nella figura seguente sono illustrate le diverse modalità di combinazione della geometria.The following illustration shows the different geometry combine modes.
Modalità di combinazione GeometryGeometry Combine Modes