Get position based on scaling factor

时间:2017-05-16 09:28:01

标签: wpf transform

I am going to perform transforamation on particular element. Before doing so i need to check some constraints. so am predicting the height and width of that element by using following code.

 double width = f.ActualWidth * Math.Abs(m.M11) + f.ActualHeight * Math.Abs(m.M21);
            double height = f.ActualHeight * Math.Abs(m.M22) + f.ActualWidth * Math.Abs(m.M12);

now i need position of those element also (i.e what will be the position if i perform tha transformation). Is that possible to achieve?

0 个答案:

没有答案