I have drawn polygon:
Microsoft.Expression.Shapes.RegularPolygon rp = new Microsoft.Expression.Shapes.RegularPolygon();
rp.StrokeThickness = 1;
rp.Stroke = new SolidColorBrush(Colors.Black);
rp.Fill = new SolidColorBrush(Colors.White);
rp.PointCount = 6;
rp.Height = 50;
rp.Width = 50;
rp.InnerRadius = 10;
rp.UseLayoutRounding = false;
Canvas1.Children.Add(rp);
For clipping Rectangle and ellipse i hv applied "RectangleGeometry" & "EllipseGeometry".Now i want to clip above polygon shape from canvas.I am not able to clip. How can i do this?
Answer: 1
http://www.codeproject.com/Articles/36495/Silverlight-ClipToBounds-Can-I-Clip-It-Yes-You-Can
http://stackoverflow.com/questions/1392753/silverlight-polygon-scaling-and-clipping
No comments:
Post a Comment
Send us your comment related to the topic mentioned on the blog