06-26-2012 08:46 AM
Hi
I am trying to import a jpg file into labview but it is too large (6625x5400). Any time I try to resize it using a program other than LabVIEW, the image gets distorted. How do I fix this? I know the program runs if I use a file size of 424x362.
The idea is to import the image and run it as a transparent screen or run a transparent screen over top of it so it looks as if you are interacting with different parts of the image.
I'm going to need a step-by-step walkthrough since I'm not all that familiar with the LabVIEW environment.
Thanks in advance!
06-26-2012 01:12 PM
@Lov3mydog wrote:
Hi
I am trying to import a jpg file into labview but it is too large (6625x5400). Any time I try to resize it using a program other than LabVIEW, the image gets distorted. How do I fix this? I know the program runs if I use a file size of 424x362.
The idea is to import the image and run it as a transparent screen or run a transparent screen over top of it so it looks as if you are interacting with different parts of the image.
I'm going to need a step-by-step walkthrough since I'm not all that familiar with the LabVIEW environment.
Thanks in advance!
Do you have a screen that large?
Where did the image come from?
I do not think you will need a transparent screen if you are using a Picture Control.
Ben
06-26-2012 01:33 PM
@Lov3mydog wrote:
I am trying to import a jpg file into labview but it is too large (6625x5400). Any time I try to resize it using a program other than LabVIEW, the image gets distorted. How do I fix this? I know the program runs if I use a file size of 424x362.
The image is distorted because you're trying to resize it to a different aspect ratio. Diminish your image (keeping the aspect ratio) until the width is 362 and then crop the height. Personnaly I use Gimp to edit images.
Ben64