简体   繁体   English

Windows应用程序的动画

[英]Animations For Windows Applications

Where can I find standard (licence free) animations like "Copy" for self implemented windows applications (avi,animated gif)? 在哪里可以找到标准的(免许可证的)动画,例如用于自行实现的Windows应用程序(AVI,动画gif)的“复制”? Visual Studio has only few animations in its image library (unfortunately not the "Copy" animation). Visual Studio在其图像库中只有很少的动画(不幸的是没有“复制”动画)。

I'd recommend you download Resource Hacker and look for the desired resource in the C:\\Windows\\System32\\shell32.dll file. 我建议您下载Resource Hacker,然后在C:\\Windows\\System32\\shell32.dll文件中查找所需的资源。
Look under the AVI section for the common AVIs used by windows. 在“ AVI”部分下查找Windows使用的常见AVI。


Alternatively, if you have Visual Studio 2008 installed, look through the Visual Studio Image Library . 或者,如果您安装了Visual Studio 2008,请浏览Visual Studio图像库 There is a copy animation in there albeit it isn't the same as the one windows displays when a copy is in progress. 尽管其中有一个复制动画,但它与进行复制时窗口显示的动画不同。

The VS image library can be found at %ProgramFiles%\\Microsoft Visual Studio 9.0\\Common7\\VS2008ImageLibrary VS图像库位于%ProgramFiles%\\Microsoft Visual Studio 9.0\\Common7\\VS2008ImageLibrary

There are a few icon packs available through the Extension Manager in Visual Studio 2010, just search for "icon" in the Online Gallery. 通过Visual Studio 2010中的扩展管理器可以使用一些图标包,只需在Online Gallery中搜索“ icon”即可。 Not sure whether there are animated icons for the Copy operation, though. 但是,不确定是否有用于“复制”操作的动画图标。

On WindowsXP, some of the animations can be found in the shell32.dll, you'll need to grab each one and see what it is as they only have resource IDs for them. 在WindowsXP上,可以在shell32.dll中找到一些动画,您需要抓住每个动画并查看其内容,因为它们只有它们的资源ID。 However, there is no documented API to access these resources and just opening shell32.dll and reading the resource is not recommended, nor can it be assumed what the format of the resource is , see this article by Raymond Chen about this issue. 但是, 没有文档化的API可访问这些资源,并且不建议仅打开shell32.dll并读取该资源,也不能假定该资源的格式是什么 ,有关此问题,请参阅Raymond Chen的这篇文章

Technically, you could just extract the animation using a resource editor and add the animation to your application. 从技术上讲,您可以只使用资源编辑器提取动画并将动画添加到您的应用程序中。 However, there is almost certainly a copyright / licensing issue here - copying the resources and adding them to your application is certainly copyright infringement, and reading the resource from system32.dll to use in your application might be breaking the EULA. 但是,这里几乎肯定存在版权/许可问题-复制资源并将其添加到您的应用程序中肯定是侵犯版权,并且从system32.dll中读取资源以在您的应用程序中使用可能会破坏EULA。 IANAL, so seek advice if this is for a non-personal project. IANAL,如果这是非个人项目,请寻求建议。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM