如何在 Vista 侧边栏中绘制程序图形?

发布于 2024-07-09 11:02:54 字数 236 浏览 6 评论 0原文

如何在 Vista 侧边栏小工具中绘制程序图形?

我有一个可以随时间收集数据的小工具,我想绘制动画图表。 我当前的方法是使用 VML 绘制图形,并在计时器滴答时从 JScript 更新该图形。 这是最好的方法吗? 我可以从 DLL 函数返回位图位作为 的源吗? 将位图位嵌入 HTML 本身(并再次通过 JScript 更新它)? 我很想听听一些想法。

谢谢!

How do I draw procedural graphics in a Vista Sidebar gadget?

I have a gadget that collects data over time and I want to draw animating graphs. My current approach is to draw the graph with VML that I update from JScript on a timer tick. Is this the best way? Can I return bitmap bits from a DLL function as the srouce to an <IMG>? Embed bitmap bits into the HTML itself (and again update it via JScript)? I'd love to hear some ideas.

Thanks!

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

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

发布评论

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

评论(3

一曲琵琶半遮面シ 2024-07-16 11:02:54

您现在可以将 Silverlight 2 与侧边栏小工具结合使用 - Codeplex 上提供的 Silverlight 工具包 (http://www.codeplex.com /Silverlight)包括图表控件(支持动画),因此应该相对简单。

You can use Silverlight 2 with Sidebar gadgets now - the Silverlight toolkit available on Codeplex (http://www.codeplex.com/Silverlight) includes charting controls (which support animation), so that should be relatively straightforward.

若有似无的小暗淡 2024-07-16 11:02:54

我目前的做法是使用 Javascript 和 Adob​​e Flash Player 通过 ActionScript 中的外部接口进行通信。 它将本地 Javascript 实例与 Flash Player 实例无缝集成,您可以在两者之间进行任何通信。 您可以在 ActionScript 中使用出色的绘图 API,真正获得一些绘制图表的能力,或者只是嵌入一些来自网络的工具。

但是,如果沙箱允许的话,通过针对 DLL 生成数据会很棒! 我手头没有任何功能来测试它,所以我将其留给其他贡献者。

The way I currently do it is with Javascript and Adobe Flash Player communicating via the ExternalInterface in ActionScript. It seamlessly integrates local Javascript instances with an instance of a Flash Player and you can communicate just about anything between the two. You can use the fantastic drawing API in ActionScript and really get some power into you hands for charting or just embed some tools off the net.

But then, if the sandbox permits it, generating data by targeting DLLs would be great! I don't have anything functional at hand to test it, so I leave it to other contributors.

空心↖ 2024-07-16 11:02:54

wz_jsgraphics 怎么样?

通过 javascript 生成 DHTML 图形

http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm

How about wz_jsgraphics ?

DHTML graphics via javascript

http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm

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