04-26-2005 11:11 AM
04-26-2005 11:31 AM
04-27-2005 02:42 AM
@Johnner wrote:
Dave,
The simplest thing to do would be to make use of the Zoom capability of the Picture Control (introduced sometime in the last couple of versions, I think).
If you create a Property Node for the picture box of interest, you will see a property called ZoomFactor near the bottom of the list. Just use the appropriate scaling factor (0.222 for your 450->100 example), and you should get a reasonable-looking thumbnail. A significant advantage of this approach is that you don't have to manage multiple scaled versions of the same image, and you can also vary your thumbnail size at run-time without having to do any extra work.
This method could possibly become intractable for memory-related reasons if you want to display a large number of scaled thumbnails of very large images; I'm not sure if LabVIEW does any optimization under the hood when it scales a picture.
Regards,
John