首页 > 编程知识 正文

如何从Windows EXE文件中提取图标

时间:2023-05-06 11:03:08 阅读:210479 作者:4569

Sometimes you’re working on a project and need access to a high-quality version of a Windows 10 application icon, but you can’t find one on the internet. Luckily, a free utility called IconViewer makes it easy to extract a high-quality icon from an application’s EXE file. Here’s how.

有时,您正在一个项目上,需要访问Windows 10应用程序图标的高质量版本,但在Internet上找不到一个。 幸运的是,一个名为IconViewer的免费实用工具使从应用程序的EXE文件提取高质量图标的操作变得容易。 这是如何做。

First, download IconViewer from the developer’s website and install it. It’s important to note that IconViewer doesn’t run in a standalone program window. Instead, it adds a special tab to a file’s Properties window that lets you view and extract a program’s icon of your choice.

首先,从开发人员的网站上下载IconViewer并进行安装。 请务必注意,IconViewer不能在独立的程序窗口中运行。 相反,它在文件的“属性”窗口中添加了一个特殊的选项卡,可让您查看和提取所选程序的图标。

For IconViewer to work, you need to have direct access to the EXE file of the application you’d like to extract an icon from. Here’s a quick way to do that: If you have access to a shortcut that points to the application, right-click it and select “Properties.” Then click “Open File Location” in the “Shortcut” tab, and you’ll be taken directly to the EXE’s location in File Explorer.

为了使IconViewer正常运行,您需要直接访问您要从中提取图标的应用程序的EXE文件。 这是一种快速的方法:如果您有权访问指向该应用程序的快捷方式,请右键单击它,然后选择“属性”。 然后在“快捷方式”选项卡中单击“打开文件位置”,您将直接进入文件资源管理器中EXE的位置。

Otherwise, you can usually find an application’s EXE file in sub-folders of C:Program Files or C:Program Files (x86).

否则,通常可以在C:Program Files或C:Program Files (x86)子文件夹中找到应用程序的EXE文件。

When you’ve found the application’s EXE file, right-click it and select “Properties.”

找到应用程序的EXE文件后,右键单击它,然后选择“属性”。

In the Properties window, click the “Icons” tab. This is a special tab that only appears if you install the IconViewer utility.

在“属性”窗口中,单击“图标”选项卡。 这是一个特殊的选项卡,仅在安装IconViewer实用程序后才会显示。

In the Icons tab, you will see a box listing all of the available icons stored in the EXE file. Some icons will be stored in multiple sizes. In Windows 10, the largest available icon will usually be listed as “256×256, 32-bit (PNG)” in the Icons tab.

在“图标”选项卡中,您将看到一个框,其中列出了EXE文件中存储的所有可用图标。 某些图标将以多种尺寸存储。 在Windows 10中,最大的可用图标通常将在“图标”选项卡中列为“ 256×256,32位(PNG)”。

Click the icon you’d like to extract, and select the size of the icon in the “Device images” box. Then click the “Save” icon, which looks like a vintage 3.5″ floppy disk.

点击您要提取的图标,然后在“设备图像”框中选择图标的大小。 然后单击“保存”图标,它看起来像老式的3.5英寸软盘 。

When the “Save As” dialog pops up, choose the location where you’d like to save it, then type in a file name.

当“另存为”对话框弹出时,选择您要保存的位置,然后输入文件名。

Next, choose the extracted icon’s file format in the “Save As Type” drop-down menu. You can pick “Icon (*.ico),” “Bitmap Image (*.bmp),” or “PNG Image (*.png).” If you’re going to be using the icon with another program, pick “Icon (*.ico).” If you’ll be using the icon in a graphic design project and would like to preserve background transparency, choose “PNG Image (*.png).”

接下来,在“另存为类型”下拉菜单中选择提取的图标的文件格式。 您可以选择“图标(* .ico)”,“位图图像(* .bmp)”或“ PNG图像(* .png)”。 如果要在其他程序中使用该图标,请选择“图标(* .ico)”。 如果要在图形设计项目中使用该图标,并且希望保留背景透明性,请选择“ PNG图像(* .png)”。

Then click “Save.”

然后点击“保存”。

After that, the icon will be extracted and saved to the location you chose. You’re free to close the EXE file’s properties window, or extract different icons from the same file. Very handy!

之后,将提取图标并将其保存到您选择的位置。 您可以自由关闭EXE文件的属性窗口,也可以从同一文件中提取不同的图标。 非常便利!

翻译自: https://www.howtogeek.com/687096/how-to-extract-an-icon-from-a-windows-exe-file/

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。