WPF - 旋转图像后找到图像的实际顶部和左侧
我正在使用 WPF,并且画布上有一张 8.5" * 11" 的纸图像。 然后,我使用 RotateTransform 旋转图像,轴位于页面中间(即 RotateTransformOrigin="0.5,0.5")。 如何在画布上找到图像角点的实际位置?
I am using WPF and I have an image of an 8.5" * 11" piece of paper on a Canvas. I am then rotating the image using a RotateTransform, with the axis being in the middle of the page (that is, RotateTransformOrigin="0.5,0.5"). How can I find the actual location on the canvas of the corners of the image?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
http://au.answers.yahoo.com/question/index?qid= 20080607033505AAF75UC
(这是几何方式)
http://au.answers.yahoo.com/question/index?qid=20080607033505AAF75UC
(this is the geometry way)
这行吗?
Will this do?