LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to auto fit bmp size

Now I want to load a bmp file to fixed picture ctl.How can i fit ctl automatically?
0 Kudos
Message 1 of 2
(2,766 Views)
You should use a picture control for this. You can set the Fit Mode to decide how the control fits the image. You can scale the image to fit the control with a fit mode of "Size Image to Control", or you can scale the control to the size of the image with a fit mode of "Size Control to Image". You can set the fit mode in the UIR editor in the picture control settings or with the SetCtrlAttribute function. You can load the image in the UIR editor also or with the DisplayImageFile function.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 2
(2,766 Views)