在 Silverlight 4 中绘制 z 轴上间隔的二维线
我目前有一个 Silverlight 4 应用程序,可以用线条绘制一些简单的 2D 布局。我想绘制多个二维线布局,但沿 z 轴将它们间隔开,然后旋转,以便我可以从某个角度看到多个布局。
我是否需要使用完整的 3D 框架才能在 SL4 中完成此任务?渴望向其他可能有捷径的人学习,因为布局中的所有对象都是 2d,它们只需要以 3d 方式间隔即可。
I currently have a Silverlight 4 app that draws some simple 2d layouts with lines. I'd like to draw multiple 2d line layouts but space them along a z axis, then rotate so I can see multiple layouts from an angle.
Do I need to go to a full on 3d framework to accomplish this in SL4? Eager to learn from anyone else that might have a short cut as all my objects in the layout are 2d, they just need to be spaced in a 3d way.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
虽然您的问题目前尚不清楚,但您可能会考虑一些功能。
作为 RenderTransform 属性的 UI 元素,因此您可以在各种形状上分配 ScaleTransform 来创建不同深度的形状的不同实例的感觉。
您是否希望在单个形状上生成透视图,就像该形状绕 X 或 Y 轴旋转一样,以便形状的一部分更靠近观察者,而另一部分则更远?在这种情况下,您可以将
PlaneProjection
分配给形状的Projection
属性来实现此目的。Whilst your question currently lacks clarity there are a couple features you might consider.
A UI element as a
RenderTransform
property so you could assign aScaleTransform
on various shapes to create a sense of different instances of a shape being at different depths.Are you looking to generate perspective on an individual shape as if the shape is rotate about the X or Y axis so that part of the shape is closer to the viewer and part is further away? In that case you can assign a
PlaneProjection
to the shape'sProjection
property to achieve that.