2 u012813909 u012813909 于 2014.10.10 01:40 提问

代码意思不理解,望知道的解析一下

protected override void OnManipulationDelta(ManipulationDeltaRoutedEventArgs e)
{
Image img = e.OriginalSource as Image; ?
CompositeTransform tran = img.RenderTransform as CompositeTransform; ?
tran.TranslateX += e.Delta.Translation.X; ?
tran.TranslateY += e.Delta.Translation.Y; ?
tran.ScaleX *= e.Delta.Scale; ?
tran.ScaleY *= e.Delta.Scale; ?
tran.Rotation += e.Delta.Rotation; ?
base.OnManipulationDelta(e); ?
}
不懂这一段代码,望解析。谢谢!

Csdn user default icon
上传中...
上传图片
插入图片