如何区分画布和旋转画布 [英] How to get difference between canvas and rotated canvas
本文介绍了如何区分画布和旋转画布的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用旋转变换来旋转包含图片背景的画布。我还有一个裁剪画布,我将用它来旋转后裁剪图像。我的旋转工作正常,但我需要使用旋转的
图像调整裁剪画布,此时它是静态的。
I am using a rotation transform to rotate a canvas with a background containing a picture. I also have a crop canvas which I will use to crop the image once its been rotated. I have the rotation working ok but I need the crop canvas to size with the rotated image, at the moment its static.
我希望有人可以帮助我获得正确的值用来将一个绑定到另一个。
I hope someone can help me get the right values to use to bind one to the other.
请参阅图片,它可能有助于描述我的目标
Please see image, it may help describe what I am after
Mal
推荐答案
你能在这里发布代码吗?
can you post the code here?
这篇关于如何区分画布和旋转画布的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文