从程序提取图标_如何从应用程序文件中提取高质量的图标

从程序提取图标_如何从应用程序文件中提取高质量的图标

从程序提取图标

从程序提取图标_如何从应用程序文件中提取高质量的图标

If you need to extract an icon from a program file or other type of file (such as .dll files), there are many free tools available that make the task easy. However, very few will extract high quality icon images from the files.

如果您需要从程序文件或其他类型的文件(例如.dll文件)中提取图标,可以使用许多免费工具来简化该任务。 但是,很少会从文件中提取高质量的图标图像。

Most free icon extraction tools will extract smaller icon image sizes, such as 16×16, 32×32, or 48×48 pixels. Some icons come in larger sizes, such as icons used in Windows. There is a free, small utility, called BeCyIconGrabber, that allows you to view and save icons and cursors of any size contained in .exe, .dll, .icl, .ocx, .cpl, .src, .ico, and .cur files. You can save the extracted icons individually as a .png file, .bmp file, .ico file, or .cur file, or in groups within resource libraries, i.e., .dll or .icl files.

大多数免费的图标提取工具将提取较小的图标图像尺寸,例如16×16、32×32或48×48像素。 有些图标尺寸较大,例如Windows中使用的图标。 有一个免费的小型实用程序,称为BeCyIconGrabber,它使您可以查看和保存.exe,.dll,.icl,.ocx,.cpl,.src,.ico和.cur中包含的任何大小的图标和光标。文件。 您可以将提取的图标分别保存为.png文件,.bmp文件,.ico文件或.cur文件,或保存在资源库(即.dll或.icl文件)中的组中。

BeCyIconGrabber can be downloaded as an installable file or as a portable executable that does not need to be installed. We downloaded the portable file.

BeCyIconGrabber可以作为可安装文件或不需要安装的可移植可执行文件下载。 我们下载了可移植文件。

从程序提取图标_如何从应用程序文件中提取高质量的图标

Double-click on the installer file and follow the installation instructions and then run the program, or double-click on the portable .exe file to run the program.

双击安装程序文件并按照安装说明进行操作,然后运行该程序,或双击可移植的.exe文件运行该程序。

从程序提取图标_如何从应用程序文件中提取高质量的图标

There are three tabs on the left side of the BeCyIconGrabber window. Use the Directory tab to select a file from which to extract one or more icons. Use the Search tab to find all icons in a selected directory, and possibly its subdirectories. Use the Favorites tab to “bookmark” files you need to access often.

BeCyIconGrabber窗口的左侧有三个选项卡。 使用目录选项卡选择要从中提取一个或多个图标的文件。 使用“搜索”选项卡查找选定目录及其子目录中的所有图标。 使用“收藏夹”选项卡为需要经常访问的文件添加“书签”。

As an example of extracting icons from a single file, we will select the Internet Explorer executable (.exe) file from which we will extract a large icon. Double-click on the Local Disk (C:) drive on the Directory tab.

作为从单个文件中提取图标的示例,我们将选择Internet Explorer可执行文件(.exe),从中提取一个大图标。 在目录选项卡上双击本地磁盘(C :)驱动器。

从程序提取图标_如何从应用程序文件中提取高质量的图标

Navigate to the following directory and select the iexplore.exe file.

导航到以下目录,然后选择iexplore.exe文件。

C:\Program Files\Internet Explorer

C:\ Program Files \ Internet Explorer

Tabs display on the right side of the BeCyIconGrabber window for the different sizes of icons available in the selected file.

选项卡显示在BeCyIconGrabber窗口的右侧,以显示所选文件中可用图标的不同大小。

NOTE: You don’t necessarily have to select files that contain icons. If you select a file without icons, BeCyIconGrabber automatically extracts the icons from the executable file for the program associated with the selected file.

注意:您不一定必须选择包含图标的文件。 如果选择不带图标的文件,则BeCyIconGrabber会自动从可执行文件中提取与所选文件关联的程序的图标。

从程序提取图标_如何从应用程序文件中提取高质量的图标

Internet Explorer has some large, 256 x 256, icons in its executable file. To extract one of these icons, click the 256 x 256 tab and click Save at the bottom of the window.

Internet Explorer在其可执行文件中有一些256 x 256的大图标。 要提取这些图标之一,请单击“ 256 x 256”选项卡,然后单击窗口底部的“保存”。

从程序提取图标_如何从应用程序文件中提取高质量的图标

The Save As dialog box displays. All available icons in the selected file are displayed in the Format box. By default, Icon Files (*.ico) is selected in the Save as type drop-down list and all the icons in the file are selected. If you want to save all the icons in the Format box into one file, you must select either the .ico type or the .cur type. If you select .png or .bmp as the type, you must select only one icon to save in the Format box.

显示“另存为”对话框。 所选文件中的所有可用图标将显示在“格式”框中。 默认情况下,在“保存类型”下拉列表中选择了图标文件(* .ico),并且选择了文件中的所有图标。 如果要将“格式”框中的所有图标保存到一个文件中,则必须选择.ico类型或.cur类型。 如果选择.png或.bmp作为类型,则必须仅选择一个图标保存在“格式”框中。

从程序提取图标_如何从应用程序文件中提取高质量的图标

To save only a 256 x 256 icon, select the 256 x 256 32 bit icon in the Format box. Enter a name for the file in the File name edit box, and select a type for the file from the Save as type drop-down list. Click Save.

要仅保存256 x 256图标,请在“格式”框中选择256 x 256 32位图标。 在“文件名”编辑框中输入文件的名称,然后从“保存类型”下拉列表中选择文件的类型。 单击保存。

从程序提取图标_如何从应用程序文件中提取高质量的图标

You can also specify how many colors are used in a selected icon, or the color depth. To do this, right-click on the icon and select Colors from the popup menu. Select 1 bit, 4 bit, 8 bit, or 24 bit to specify the color depth for that icon. To automatically select the color depth, select (automatic) from the submenu, which is the default choice.

您还可以指定在所选图标中使用多少种颜色或颜色深度。 为此,请右键单击该图标,然后从弹出菜单中选择“颜色”。 选择1位,4位,8位或24位以指定该图标的颜色深度。 要自动选择颜色深度,请从子菜单中选择(自动),这是默认选择。

从程序提取图标_如何从应用程序文件中提取高质量的图标

For files you select often in BeCyIconGrabber, you can add the files to your Favorites list. To do so, select the file on the Directory tab, or in the list of results on the Search tab, and click Favorites at the bottom of the left side of the window.

对于在BeCyIconGrabber中经常选择的文件,可以将文件添加到“收藏夹”列表中。 为此,请在目录选项卡上或搜索选项卡的结果列表中选择文件,然后单击窗口左侧底部的收藏夹。

从程序提取图标_如何从应用程序文件中提取高质量的图标

The selected file is added to the Favorites tab. If you don’t want to keep a file as a favorite, select it on the Favorites tab and click Remove.

所选文件将添加到“收藏夹”选项卡。 如果您不想将文件保留为收藏夹,请在“收藏夹”选项卡上将其选中,然后单击“删除”。

The (Shell) item is available on the Favorites tab by default and cannot be removed. It provides access to the icons used by the Windows operating system. If you’re looking for a general icon to use, (Shell) is a good place to start.

(Shell)项默认情况下在“收藏夹”选项卡上可用,并且无法删除。 它提供对Windows操作系统使用的图标的访问。 如果您要使用通用图标,则(Shell)是一个不错的起点。

从程序提取图标_如何从应用程序文件中提取高质量的图标

Besides searching for and selected files on your own from which to extract icons, you can have BeCyIconGrabber search for all files containing icons in a selected directory. To do this, click the Search tab and click New Search.

除了自己搜索和选择文件以提取图标之外,您还可以让BeCyIconGrabber搜索所选目录中所有包含图标的文件。 为此,请单击“搜索”选项卡,然后单击“新建搜索”。

从程序提取图标_如何从应用程序文件中提取高质量的图标

On the Search dialog box, click Browse to the right of the Search in Directory edit box.

在“搜索”对话框中,单击“在目录中搜索”编辑框右侧的“浏览”。

NOTE: You can also enter the full path manually in the edit box.

注意:您也可以在编辑框中手动输入完整路径。

从程序提取图标_如何从应用程序文件中提取高质量的图标

On the Browse for Folder dialog box, navigate to the directory in which you want to search for icons, select the directory, and click OK.

在“浏览文件夹”对话框中,导航到要在其中搜索图标的目录,选择目录,然后单击“确定”。

从程序提取图标_如何从应用程序文件中提取高质量的图标

To search in all the subdirectories within the selected directory, click the Recursively Search Sub Directories check box.

要搜索所选目录中的所有子目录,请单击“递归搜索子目录”复选框。

Some files contain more than one icon, or symbol, in the file. If you want to only find files with a certain, minimum number of symbols, enter the desired number in the Minimum number of contained symbols for a file to be listed edit box. The default value is 1.

某些文件在文件中包含多个图标或符号。 如果只想查找具有一定最小符号数的文件,请在“要列出的文件的最小包含符号数”编辑框中输入所需的数字。 预设值为1。

Symbols contained in files in the selected directory and subdirectories are automatically extracted and displayed on tabs on the right side of the BeCyIconGrabber window. To limit the number of symbols to be extracted during the search, enter the desired number in the Maximum number of symbols to immediately extract during search edit box. The default value is 10000.

所选目录和子目录中文件中包含的符号会自动提取,并显示在BeCyIconGrabber窗口右侧的选项卡上。 要限制搜索过程中要提取的符号数,请在“搜索过程中立即提取的最大符号数”框中输入所需的数字。 默认值为10000。

Click OK to begin the search. We chose to search for all icons in the Programs Files directory and all subdirectories.

单击确定开始搜索。 我们选择在“程序文件”目录和所有子目录中搜索所有图标。

从程序提取图标_如何从应用程序文件中提取高质量的图标

The files being scanned display in a message at the bottom of the BeCyIconGrabber window. To stop the search, click Cancel.

BeCyIconGrabber窗口底部的消息中显示正在扫描的文件。 要停止搜索,请单击“取消”。

从程序提取图标_如何从应用程序文件中提取高质量的图标

All the files containing icons display in a list on the Search tab. Initially, all the icons from all the files found are displayed on tabs on the right side of the BeCyIconGrabber window. To view icons only for a specific file in the list, select that file. Only the icons contained in that file are displayed on tabs on the right.

所有包含图标的文件都显示在“搜索”选项卡上的列表中。 最初,找到的所有文件中的所有图标都显示在BeCyIconGrabber窗口右侧的选项卡上。 要仅查看列表中特定文件的图标,请选择该文件。 右侧选项卡上仅显示该文件中包含的图标。

从程序提取图标_如何从应用程序文件中提取高质量的图标

In addition to extracting icons from files, BeCyIconGrabber can also extract cursors. By default, icons are only selected. To extract cursors, as well as icons, select Cursors from the Options menu.

除了从文件中提取图标之外,BeCyIconGrabber还可以提取光标。 默认情况下,仅选择图标。 若要提取光标以及图标,请从“选项”菜单中选择“光标”。

NOTE: When you change the Icons and Cursors selections, you must run the search again, or deselect the file on the Directory tab and select it again for the change to take effect.

注意:更改“图标”和“光标”选项时,必须再次运行搜索,或者在“目录”选项卡上取消选择文件,然后再次选择该文件以使更改生效。

从程序提取图标_如何从应用程序文件中提取高质量的图标

The following image shows the results of searching for only cursors in the Programs Files directory and subdirectories.

下图显示了仅在Programs Files目录和子目录中搜索游标的结果。

从程序提取图标_如何从应用程序文件中提取高质量的图标

Extracting icons from files is useful if you create a lot of specialized shortcuts to scripts or batch files and you want to attach icons to the shortcuts to easily identify them. BeCyIconGrabber makes it easy to extract high quality icons in various sizes.

如果您为脚本或批处理文件创建了许多专门的快捷方式,并且希望将图标附加到快捷方式以轻松识别它们,则从文件中提取图标非常有用。 BeCyIconGrabber可以轻松提取各种大小的高质量图标。

Download BeCyIconGrabber from http://www.becyhome.de/download_eng.htm.

http://www.becyhome.de/download_eng.htm下载BeCyIconGrabber。

翻译自: https://www.howtogeek.com/109347/extract-high-quality-icons-from-files-using-a-free-tool/

从程序提取图标