반응형
2013/06/28
-
WPF 2D Scale Transforms.NET/WPF 2D 2013. 6. 28. 00:17
reference : Practical WPF Graphics Programming
-
WPF 2D Object Matrix Transforms.NET/WPF 2D 2013. 6. 28. 00:04
M11 M12 M21 M22 OffsetX OffsetY Apply init Original shape private void BtnApply_Click(object sender, RoutedEventArgs e) { GetValue(); } private void GetValue() { if (matrixTransform != null) { Matrix m = new Matrix(); m.M11 = tbM11 != null ? tbM11.Value : 0; m.M12 = tbM12 != null ? tbM12.Value : 0; m.M21 = tbM21 != null ? tbM21.Value : 0; m.M22 = tbM22 != null ? tbM22.Value : 0; m.OffsetX = tbOf..