使用 silverlight 3D 图像(拖放、编辑、旋转、调整大小、放大和缩小)

发布于 2024-07-15 05:54:04 字数 101 浏览 6 评论 0 原文

我是 silverlight 的新手,现在正在学习基础知识。 但我需要实现 3D 图像操作(拖放、编辑、旋转、调整大小、放大和缩小)。 请附上相应的代码示例、附件进行说明。 请尽快。

i am new to silverlight, learning basics now.
But i need to implement 3D image manipulation(drag&drop,editing,rotation,resize,zoom in & zoom out).
Please explain with corresponding code samples,attachments .
Please as soon as possible.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

御弟哥哥 2024-07-22 05:54:04

Surendra-chw,

这是一个非常开放式的问题:除非您清楚自己想要实现的目标,否则人们很难帮助您(并请解释您已经尝试/学到的内容,如果有的话)。 最重要的是,在像 stackoverflow 这样的问答环境中,我们无法为您完成工作。

Silverlight 2.0 不支持任何开箱即用的 3D 功能。 我想你知道吗?

您可能已经通过 Google 找到了 Kit3D? 它尝试提供 WPF 3D 命名空间/类的子集,以便尽可能为您提供一致的 API。 它还包含一个示例项目,其中包含许多 Silverlight 中的不同 3D 示例。

另一个有用的信息来源是Charles Petzold 的书(你应该购买它)和博客。 它主要是关于 WPF 3D,但这些概念将适用于 Kit3D(以及 Silverlight 3.0,大概在下周发布时)。

surendra-chw,

This is a very open-ended question: it will be difficult for people to help you unless you are clear about exactly what you are trying to accomplish (and please explain what you have already tried/learned, if anything). Most importantly, in a question-answer environment like stackoverflow we can't do your work for you.

Silverlight 2.0 does not support any 3D functionality out-of-the-box. I guess you knew that?

You have probably already found Kit3D via google? It attempts to provide a subset of the WPF 3D namespaces/classes to give you a consistent API where possible. It also contains a sample project with a number of different 3D examples in Silverlight.

Another useful source of information would be Charles Petzold's book (you should buy it) and blog. It is mostly about WPF 3D, but the concepts will be applicable to Kit3D (and Silverlight 3.0, presumably, when it's announced next week).

顾冷 2024-07-22 05:54:04

等待 Silverlight 3。它应该在今年夏天某个时候发布并支持 3D,但您的问题与 3D 无关。

目前 Silverlight 2 支持您所描述的所有功能。 为了获得一些关于这需要什么的信息,我建议下载 Blend 并使用变换属性,旋转,缩放都是该功能的一部分。

至于调整大小和拖放,那就是另外一回事了。 在您的控件上,您必须在 LeftMouseButtonDown 和 LeftMouseButtonUp 的事件处理程序中添加一些方法,然后捕获鼠标位置增量以获取移动的方向和距离,然后将其应用到 X 或 Y 平面上 TranslateTransform 的 TranslateTransform 属性。

显然,您必须做一些工作才能实现您想要实现的目标。

Wait for Silverlight 3. This should be out this summer some time and supports 3D, but your questions aren't related to 3D.

Currently Silverlight 2 supports all of that functionality yo described. To get some information on what this entails I would suggest downloading Blend and playing with the transform propertied, rotation, scale are all a part of that functionality.

As for resize and drag and drop that's a whole other beast. On your control you'll have to add some methods on the event handlers for LeftMouseButtonDown and LeftMouseButtonUp, then capture the mouseposition delta to get which direction and how far to move, then apply that to the transformgroup property of TranslateTransform on the X or Y plane.

You're clearly going to have to do some work to get at what you want to achieve.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文