GetNumImagesInFile
int GetNumImagesInFile (char filename[], int *count);
Purpose
Returns the number of images in a file. You can use this function to find out how many images are in an .ico file. Then you can iterate them by calling GetBitmapFromFileEx.
Parameters
Input | ||
Name | Type | Description |
filename | char [] | Pathname of the file that contains the image. You can use a complete pathname or a simple filename. If the name is a simple filename, the file is loaded from the directory that contains the executable. |
Output | ||
Name | Type | Description |
count | int | The number of images in the file. Only the .ico file type supports multiple images. |
Return Value
Name | Type | Description |
status | int | Return value indicating whether the function was successful. A negative number indicates that an error occurred. |
Additional Information
Library: User Interface Library
Include file: userint.h
LabWindows/CVI compatibility: LabWindows/CVI 9.0 and later