Images.FindImage
- Mise à jour2025-07-21
- Temps de lecture : 1 minute(s)
Images.FindImage
Syntax
Images.FindImage( iconName, desiredWidth, desiredHeight)
Return Value
Purpose
Searches the collection for an image with a specific name.
Remarks
Returns the image in a Picture object. This method errors if the image is not found.
Parameters
iconName As String
[In] Specifies the name of the image to find. Typically, the name includes the filename and file extension. Icon files are located in the <TestStand> \Components\Icons and <TestStand Public>\Components\Icons directories.
desiredWidth As Long
[In] Specifies the width, in pixels, of the image to return.
desiredHeight As Long
[In] Specifies the height, in pixels, of the image to return.