JCL Help:ExtractIconCount

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns the number of icons in a file.


Pascal

 function ExtractIconCount(const FileName: string): Integer;


Parameters

Parameters Description
const FileName: string Fully qualified name of the file for which to count the number of icons. This can be any executable file, dynamic link library or icon file.


Return Value

The number of icons in the specified file. If the file does not contain icons the result is 0.


Description

ExtractIconCount returns the number of icons that exist in the specified file. The function is capable of detecting the number of icons in an executable file, a dynamic link library or an icon file. In the case of a .exe or .dll the function returns the number of RT_GROUP_ICON resources and in case of a .ico file it returns 1.


About

Unit

JclGraphics


Donator

Marcel van Brakel


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page