hhojjatt
چهارشنبه 13 آبان 1388, 13:50 عصر
من با کد زیر می خوام یک نیم دایره در canvas رسم کنم ولی نمیشه به نظر شما ایراد ان کجاست ممنون
public void arcdraw(double heigth, double width, System.Windows.Thickness tn)
{
Color c = new Color();
c.A = 255;
c.B = 0;
c.G = 0;
c.R = 0;
Path pat = new Path();
pat.Height = heigth;//50
pat.Width = width;//50
pat.Stroke = new SolidColorBrush(c);
pat.Margin = tn;
pat.StrokeThickness = 0.4;
cannemodar.Children.Add(pat);
}
tn.left=50,tn.top=50
public void arcdraw(double heigth, double width, System.Windows.Thickness tn)
{
Color c = new Color();
c.A = 255;
c.B = 0;
c.G = 0;
c.R = 0;
Path pat = new Path();
pat.Height = heigth;//50
pat.Width = width;//50
pat.Stroke = new SolidColorBrush(c);
pat.Margin = tn;
pat.StrokeThickness = 0.4;
cannemodar.Children.Add(pat);
}
tn.left=50,tn.top=50