반응형
<Window x:Class="WpfApplication20.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Geometry and Mini-Language" Height="350" Width="525"> <Window.Resources> <SolidColorBrush x:Key="MyGrayGridBrush" Color="YellowGreen"/> </Window.Resources> <StackPanel> <Path Stroke="Blue"> <Path.Data> <PathGeometry> <PathFigure StartPoint="0,0"> <PolyLineSegment Points="40,32,40,42,30,37"/> </PathFigure> </PathGeometry> </Path.Data> </Path> <Path Stroke="Blue" Data="M 0 0 L 40 32 L 40 42 L 30 37"/> </StackPanel> <!-- Smooth Quadratic Bezier curve => T pt, endpoint t pt, endPoint Elliptical => Arc A size, angle, isLargeArc, Direction, endpoint a size, angle,… Close => Z z Point => X, Y or x y Special values => Infinity -Infinity NaN --> </Window>
reference : Practical WPF Graphics Programming
'.NET > WPF 2D' 카테고리의 다른 글
WPF Interactive 2D Drawing (0) | 2013.07.11 |
---|---|
WPF 2D Bezier Curve (0) | 2013.07.11 |
WPF 2D PathGeometry Class (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 |