07-22-2011 02:47 PM
I'd like to do the following:
1. Open a folder that contains BMP files using the code posted by SteveChandler
2. Display bitmaps in the picture object (say 1 image per second) in a way that would stretch the image and fiill the whole frame with every bitmap update.
Right now I do not see a way of stretching the pitcure object. I am not sure if I am using the right object (picture). Any suggestions are appreciated.
07-22-2011 03:00 PM
The picture control (which is called a picture control despite almost always being used as an indicator), has a zoom property which is perhaps the simplest way to get what you are after. This assumes you want the same scaling in x and y which is fairly reasonable. There are other interpolating methods for nonuniform scaling, but this is much more complicated.
07-22-2011 03:09 PM
@Darin.K wrote:
The picture control (which is called a picture control despite almost always being used as an indicator), has a zoom property which is perhaps the simplest way to get what you are after. This assumes you want the same scaling in x and y which is fairly reasonable. There are other interpolating methods for nonuniform scaling, but this is much more complicated.
Are you talking about Classic > Classic Graph > Control > 2D Picture? I do not see any zoom properties for this object.
07-22-2011 03:10 PM
Right-Click -> Create Property Node -> the last entry is 'Zoom Factor' or something like that.
07-22-2011 03:50 PM
@Darin.K wrote:
Right-Click -> Create Property Node -> the last entry is 'Zoom Factor' or something like that.
Found it; but it does not work quite well. I need a have a separate zoom for X and Y axis, and the zoom factor is the one that works for both axis at the same time.
07-22-2011 03:57 PM
If you look in the code I posted here:
http://forums.ni.com/t5/LabVIEW/Concatenate-Images/m-p/1152517#M506549
you will find the code I use to do arbitrary scaling on 24 bit images.
07-25-2011 10:47 AM
This is so complex... is there any simpler solution?...
08-01-2011 04:03 PM
Hi wprice,
Were you able to look at the ScaleBitmap.vi. It appears to be a solution that should work well for you application.
regards,
Josh
08-01-2011 06:48 PM
Josh B wrote
Were you able to look at the ScaleBitmap.vi. It appears to be a solution that should work well for you application.
Where do I find it? I do tno see it under LV 2009 examples.
08-02-2011 09:44 AM
Click on this link http://forums.ni.com/t5/LabVIEW/Concatenate-Images/m-p/1152517#M506549 and then look at the bottom of Darin.K's post you will see and attachment called CoryKArtworkGenerator.llb 685 KB. If you open that attachment you will a labview LLB Manger open with three vis in it. I believe the ScaleBitmap.vi will be useful for you. Let me know if you that works.
Regards,
Josh Brown