10-29-2009 10:00 AM
Solved! Go to Solution.
10-29-2009 10:08 AM
You have found the easy way one over the other but the side by side takes more work. I can't code up an example but I can outline the work (subject to my memory).
THe image data is just a 1-d aray that has all of your pixel data is raster scan format starting at teh top left working to the righ and then down. THat is why you can easily add one image above the other.
To get thhem side by side you are going to have to interlace teh scan lines from each image so teh 1-d array contains
Pic1_Scan1, Pic2_Scan1, Pic1_Scan2,...
THe size of each scan line can be derived from the image size.
Watch for padding since images are padded out to multiples of 8 (if memory serves).
Ben
10-29-2009 12:22 PM
There are a couple of ways to let the picture functions do the work for you. The most efficient is to change the rectangle of the second image, but the code to change this to that and add this to that is a bit ugly, so I take the easy way out this time, but suggest you write a little subVI to simply shift the rectangle. Then you can choose side by side, on top, add padding, etc.
Here is the easy (to code) way out.