To download NI software, including the products shown below, visit ni.com/downloads.
This VI demonstrates how you can interactively extract the color of a pixel from a 2D picture.
Description
Have you ever wondered if you could find out the color of a specific pixel on an image? That's exactly what this example does. Run this VI and pick any JPEG image on your computer. An example image is already provided with the VI.
Mouse over the picture control and find out the exact color your mouse is over and the coordinates your mouse is hovering over within the picture identifier.
Requirements
Software
Hardware
Steps to Implement or Execute Code
Additional Information or References
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
There is a bug with this that it doesn't take into account and scrolling of the image. So if you load an image and then scroll down it no longer selects the right color properly. To fix this read the Origin property, and add it to the offset inside the Mouse Move event.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord