ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • WPF 2D PathGeometry Class
    .NET/WPF 2D 2013. 7. 11. 03:23
    반응형










    <Window x:Class="WpfApplication18.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="MainWindow" Height="850" Width="525">
    <Grid>
    <StackPanel>
    <Path Stroke="Black">
    	<Path.Data>
    		<PathGeometry>
    			<PathFigure StartPoint="10,10">
    				<LineSegment Point="130,100"/>
    				<LineSegment Point="110,150"/>
    			</PathFigure>
    		</PathGeometry>
    	</Path.Data>
    </Path>
    <Path Stroke="Blue">
    	<Path.Data>
    		<PathGeometry>
    			<PathFigure StartPoint="10,20">
    				<PolyLineSegment 
    				Points="200,120,220,20,100,170"/>
    			</PathFigure>
    		</PathGeometry>
    	</Path.Data>
    </Path>
    <Path Stroke="Blue">
    	<Path.Data>
    		<PathGeometry>
    			<PathFigure StartPoint="10,20">
    				<ArcSegment Point="200,50" Size="40,30"
    					SweepDirection="Counterclockwise"/>
    			</PathFigure>
    			<PathFigure StartPoint="100,50">
    				<ArcSegment Point="200,50" Size="50,30" 
    		SweepDirection="Clockwise"/>
    			</PathFigure>
    		</PathGeometry>
    	</Path.Data>
    </Path>
    </StackPanel>
    </Grid>
    </Window>
    










    reference : Practical WPF Graphics Programming




    반응형

    '.NET > WPF 2D' 카테고리의 다른 글

    WPF Interactive 2D Drawing  (0) 2013.07.11
    WPF 2D Geometry and Mini-Language  (0) 2013.07.11
    WPF 2D Bezier Curve  (0) 2013.07.11
    WPF 2D Combined Geometry  (0) 2013.07.11
    WPF 2D Geometry Group  (0) 2013.07.11
    WPF Geometry and 2D Drawing  (0) 2013.07.11
    WPF 2D Composite Transforms  (0) 2013.07.04
    WPF 2D SkewTransform  (0) 2013.07.04

    댓글

Designed by Tistory.