CombinedGeometry Class WPF in VB.NET
In this article you will learn about the CombinedGeometry Class of WPF.
As you see an GeometryGroup Classes example in my previous
article, now we see the CombineGeometry in this article.
is combining shapes that
overlap, and where neither shape contains the other completely, CombinedGeometry
takes just two geometries, which you supply using the Geometry1 and Geometry2
properties. A CombinedGeometry uses a specified boolean operation to combine the
area described by two Geometry objects. The static Combine method of the
Geometry class behaves in exactly the same manner as the CombinedGeometry
CombinedGeometry has a GeometryCombineMode
attribute to set the combine mode. It can get one of following values.To
understand these modes apply these operations to two sets in mathematics.
shape contains all points of two older shapes. This is the default value.
shape contains all points that are shared between two shapes.
shape contains all points between two older shapes except what is shared
shape contains all points between first shape and not second shape.
Example of CombinedGeometry
Title="Window1" Height="300" Width="300">
<Path Fill="Pink" Stroke="Red" Margin="10">
<EllipseGeometry Center="105,45" RadiusX="85" RadiusY="40"></EllipseGeometry>
Hope this is clear you to the CombinedGeometry
class in WPF. Remaining part of this article you will see my next article.