Download LabWindows/CVI User Interface Reference Manual
Transcript
Chapter 4 User Interface Library Reference — DisplayImageFile DisplayImageFile int status = DisplayImageFile (int panelHandle, int controlID, char filename[]); Purpose Displays the contents of an image file on a picture control. You can use the following image types: .pcx .bmp, .dib, .rle, .ico .wmf .xwd Windows and UNIX Windows only Windows 95/NT only UNIX only To display an image, first create a picture control in the User Interface Editor or with NewCtrl. Then call DisplayImageFile using the picture control ID. To delete the image, call DeleteImage, which also removes it from memory. To replace the current image with another, simply call DisplayImageFile for the same picture control with a different image file. Parameters Input Name Type Description panelHandle integer Specifier for a particular panel that is currently in memory. You obtain this handle from LoadPanel, NewPanel, or DuplicatePanel. controlID integer Defined constant, located in the .uir header file, that you assign to the control in the User Interface Editor, or the ID that you obtain from NewCtrl or DuplicateCtrl. filename string Name of the image file that contains the image. If the name is a simple filename with no directory path, the file is loaded from the project. If it is not found in the project, the file is loaded from the directory containing the project. © National Instruments Corporation 4-85 LabWindows/CVI User Interface Reference Manual
Related documents
LabWindows/CVI User Interface Reference Manual
How to Use Asynchronous Callback Functions with GPIB Events for
LabWindows/CVI Version 5.0 Release Notes for Windows
DSP Based Electric Drives Laboratory - HCMUT
Inventarisierung mit RFID - RFID Projekthomepage
Measurement Studio LabWindows/CVI User Manual