03-19-2019 02:45 AM
Hi ,
i want to Know how to Resize Image to match the Container Using LabVIEW ? i use the code below but i find blank space in the picture .
03-19-2019 03:32 AM
Hi Emna,
to "fill" your image indicator you would need to apply two different scaling factors, for both X and Y axis: this is not supported for the image indicator.
You would need to scale the image on your own (or use an external 3rd party tool like imagemagick)!
03-19-2019 03:50 AM
03-20-2019 02:19 PM
If you don't mind some .Net then you might want to checkout an example I made here which loads an image into a PictureBox which fits to the pane and resizes with it without extra code. OpenG is needed.
https://forums.ni.com/t5/LabVIEW/Read-multi-image-tiff/m-p/3580103#M1002365
Of course I just went to try it and for some reason the control doesn't load so it might not actually work for you.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
03-21-2019 01:42 AM
@Hooovahh wrote:
If you don't mind some .Net then you might want to checkout an example I made here which loads an image into a PictureBox which fits to the pane and resizes with it without extra code. OpenG is needed.
https://forums.ni.com/t5/LabVIEW/Read-multi-image-tiff/m-p/3580103#M1002365
Of course I just went to try it and for some reason the control doesn't load so it might not actually work for you.
It loads just fine here.
Nice demo. I didn't know about the "PNG data to LabVIEW Image.vi".
OP, don't be scared by that code, what you need can probably be done easier, using Image:Load(string) and SizeMode (and maybe something more). I suggest you search for the other threads about it and try it out.