LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get size of image loaded into picture control

I have loaded an image from a png file into a picture control. I want to size the picture control to the exact image size.  How can I get the size of the image or make the picture control size to image automatically?
0 Kudos
Message 1 of 3
(7,005 Views)
Hi pake,

when loading the picture you get a cluster with image informations. One of the items is a cluster named "rectangle" containing the size of the picture!


Message Edited by GerdW on 11-13-2007 02:46 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(7,000 Views)

...and then you apply those to the draw area of the picture.

Ben



Message Edited by Ben on 11-13-2007 07:47 AM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 3 of 3
(6,997 Views)