سلام بر برنامه نویسان عزیز 😉 در این مطلب کد ترکیب کردن دو geometries با GeometryCombineMode=Intersect با wpf و سی شارپ را آماده کردم. انشاالله که این آموزش برای شما مفید باشد.
تصویر خروجی این کد:
کد ترکیب کردن دو geometries با GeometryCombineMode=Intersect با wpf و سی شارپ :
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="SDKSample.SampleViewer"
Title=" Examples" >
<Canvas>
<Path Stroke="Black" StrokeThickness="1" Fill=''"Intersect">
<CombinedGeometry.Geometry1>
<EllipseGeometry RadiusX="50" RadiusY="50" Center="75,75" />
</CombinedGeometry.Geometry1>
<CombinedGeometry.Geometry2>
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="SDKSample.SampleViewer"
Title=" Examples" >
<Canvas>
<Path Stroke="Black" StrokeThickness="1" Fill=''"Intersect">
<CombinedGeometry.Geometry1>
<EllipseGeometry RadiusX="50" RadiusY="50" Center="75,75" />
</CombinedGeometry.Geometry1>
<CombinedGeometry.Geometry2>