10-11-2022 05:31 AM - edited 10-11-2022 05:40 AM
I've made a scale on labview, and I want to convert it as an image. I've tried doing the Create >> Invoke Node >> Get Image method. From this, I do get an image, but it's just the portion of the scale that's being displayed on the front panel (as shown in the image attached, 'gs2'.jpg), and the blue background is also distorted. I want the whole length of the scale to be saved as an image, from 0 to 300, and with a clear blue bg as is being shown in the front panel.
The vi is attached below.
The 'scale parameters' image shows the dimensions of the scale.
The 'gradient scale 1' image is the image i'm using for the scale background.
Solved! Go to Solution.
10-11-2022 08:31 AM
Hi sarwat,
@sarwatsarfaraz wrote:
I've tried doing the Create >> Invoke Node >> Get Image method. From this, I do get an image, but it's just the portion of the scale that's being displayed on the front panel (as shown in the image attached, 'gs2'.jpg),
Using this method you get an image of the control as it is shown in the frontpanel!
Hint: When you resize your control to show the full scale image then you will get an image of the full scale…
@sarwatsarfaraz wrote:
the blue background is also distorted.
That's your fault! When you set an "image depth" of 24 (color bits per pixel) you get the desired 24bit-RGB image…