Overview
There are many methods to display images, and with the IMAQ API you can display an image in its own window. However, if you would like to embed the image in a form with other controls, we can copy our images to the Canvas control as well.
Description
This example code demonstrates how we can read in an IMAQ image, convert that image to a bitmap, then display the image within a canvas.
Steps to Implement or Execute Code
- Open the 'User Interface Application.prj file
- Run the code
- Select 'Read Image' and browse to an image
- The image will display within the canvas control
Requirements
Software
LabWindows/CVI
NI IMAQ vision software
Hardware
N/A
Additional Images or Video
Cole R.
National Instruments
Software Engineer