11-16-2007 05:34 AM
11-16-2007 06:04 AM
11-16-2007 06:59 AM - edited 11-16-2007 07:00 AM
An example using Unflatten pixmap... redraw the same image after a 50 pixel shift in x and y :
11-16-2007 07:04 AM
11-16-2007 07:15 AM
I think you are correct, you can combine the images.
The image at the Unflatten Pixmap.vi would have to be different (so for the example, open two seperate jpg files).
RayR
11-16-2007 07:30 AM - edited 11-16-2007 07:30 AM
See attached image
09-30-2021 10:48 AM - edited 09-30-2021 10:49 AM
I know this post is old but I was looking for the same question in 2021. I figured out you can also set the image position in the picture by directly manipulating the image data / Rectangle, just make sure you keep the same aspect ratio and size or it will draw a funky picture. see code snipit.
09-30-2021 10:53 AM - edited 09-30-2021 10:56 AM
To be fully correct you should actually also apply the offset to the left and top coordinates. While that is usually 0 and 0, it won't be once you do such funky offset manipulations. And it's even imaginable that an image has actually another than a 0, 0 origin. Image formats like PNG would support such things with optional Tags, although I'm not sure the LabVIEW PNG read function supports such things.
09-30-2021 11:09 AM
Well I would never want to be fully correct on anything, I'm ok with technically correct ; )
10-01-2021 01:47 PM - edited 10-01-2021 01:48 PM
Also for completeness the 2D picture control is just a string, with operations describing how to draw the thing, drawing on top of the image. The Concatenate String function work on 2D pictures to put one on top of the other. As a result you can draw your image, and then shift it by adjusting the operations of the image. One great example of this is by Norm over on LAVA.
Using this you could draw the image, then shift it, then concatenate it on an existing image if you needed.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord