“Office 2010 加载项:图标库” - 如何从后台选项卡中提取图标(docx)
我下载了“Office 2010 加载项:图标库 ” 这是一个 docx 文件,有两个包含图标的后台选项卡。
如何提取图标或在我的应用程序中使用它们?
I downloaded "Office 2010 Add-In: Icons Gallery" that is docx file with two backstage tabs that hold icons.
How can I extract the icons or use them in my application?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
我在 Excel 开发中经常使用 ImageMso。偶然发现另一篇文章后,我更进一步,将其放在一起,以直观方式搜索、从 Microsoft Excel 中提取图标并将其保存为文件,或复制并粘贴(具有 alpha 通道透明度)到另一个应用程序。我还从各种来源编制了 8,899 个不同 ImageMso 名称的列表。我希望其他人会发现这很有用。
Microsoft Office 图标 (ImageMSO) 库和图标提取
I use ImageMso quite frequently in my Excel development. Having stumbled on another post, I took it a step further and put a package together to visually search, extract and save icons from Microsoft Excel as a file or copy and paste (with alpha channel transparency) to another application. I also compiled a list of 8,899 distinct ImageMso names from the various sources. I hope others can find this useful.
Microsoft Office Icons (ImageMSO) Gallery & Extraction
我想第一个答案的意思是,这些图标只能在 Office 中使用;即 Office 加载项等。
例如,它们可以通过 Office Fluent UI 定义 XML 来引用。因此,分发形式充当可见的“啊,我想要在我的加载项中使用该图标”反应,然后选择要在“imageMso”属性中使用的指定 ID。
像这样(请参阅 Office Fluent UI 自定义中正确的完整 XML)
I suppose the first answer meant to say, that the icons are only meant to be used within Office; that is with Office add-ins and such.
They can be referred with Office Fluent UI definition XML for example. So the distribution form serves as visible "Ahh I want that icon in my add-in" reaction and then choosing the specified ID to use in "imageMso" attribute.
Like this (see proper full XML in Office Fluent UI customization)
本文 包含对我有用的代码。他们甚至还在文章中链接了透明 PNG 格式的输出图标集,这样您就不需要运行代码。我从下面的文章中复制了透明 PNG 的链接。
图片 1
图像 2
注意:
虽然图标有透明背景,但只有图标内的图像是透明的,我必须进入 Photoshop 手动删除顶部和底部的白色背景。这是一个示例:
This article contains code that worked for me. They even linked the outputted icon sets in transparent PNGs in the article too, so that you don't need to run the code. I've copied the transparent PNG's links from the article below.
Images 1
Images 2
Note:
Although the icons had a transparent background only the image within the icon was transparent, I had to go into Photoshop and remove the white background manually at the top and bottom. Here's an example:
转到“文件”选项卡
在左侧面板上,您将看到后台选项卡列表
Go to tab "File"
On the left panel you'll see list of backstage tabs
在此帖子中,有 2 个下载链接Office 2010/2013 的所有 ImageMso。还有源代码,以便我们可以自己提取不同大小的图标。
From this post, there are 2 download links for all ImageMso of Office 2010/2013. There is also source code so that we can extract Icons ourselves with different size.
这是一个老问题,但我错过了“如何使用”而不是“如何查看”的答案。
在 Visual Studio 2015 中,您只需将名称(或 ID - 显示在图片正下方的 docx 文件中)分配给“OfficeImageId”属性。例如,此属性可在 Microsoft.Office.Tools.Ribbon.RibbonEditBox 或 .RibbonButton 中使用。
This is an old question, but I miss an "how to use" not "how to view" answer.
In Visual Studio 2015 you can just assign the name (or ID - shown in the docx File right below the pictures) to the "OfficeImageId" Property. This Property is for example available in Microsoft.Office.Tools.Ribbon.RibbonEditBox or .RibbonButton.