TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
nanda kishor
NA
6
2k
Resize the polygon by programmatically..
Apr 20 2017 3:43 AM
Here I have code to draw the polygon, it is working fine..
private void DrawTriangle(bool fill)
{
var pointsCollection = new PointCollection();
pointsCollection.Add(new Point(10, 4));
pointsCollection.Add(new Point(5, 12));
pointsCollection.Add(new Point(15, 12));
pointsCollection.Add(new Point(10, 4));
var triangle = new Polygon
{
Points = pointsCollection,
Stroke = brush
};
if (fill)
triangle.Fill = brush;
canvas.Children.Add(triangle);
}
I need to resize the polygon, so I am using scaletransform to resize it.
ScaleTransform scaleTransform1 = new ScaleTransform(scalex, scaley);
triangle.RenderTransform = scaleTransform1;
but the transformation is not working here..
Reply
Answers (
3
)
Insert the symbols in to word document
Regarding Project. Wix file