Example Code

Reading 24-bit TIFF Files Using LabVIEW IMAQ Tools

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • Vision Development Module
  • LabVIEW

Code and Documents

Attachment

Overview

The example demonstrates how to overlay an image with a overlay with variable thickness.

 

Description

The example loads a TIFF image file and checks the exact image type and loads the image to a IMAQ image buffer. With the 'IMAQ WindDraw' function the image is displayed in a new window.

24-bit TIFF files are TIFF files which use 8-bits to represent each color channel (R, G, B).

 

Requirements

 Software

  • LabVIEW 2012 Base Development System (or compatible)
  • Vision Development Module 2012 (or compatible)

 Hardware

  • No hardware is necessary to use this example VI

 

Steps to Implement or Execute Code

  1. Run the VI

 

Additional Information or References

IMAQ TIFF File Read LV2012 NIVerified.vi - Front Panel.png

 

IMAQ TIFF File Read LV2012 NIVerified.vi - Block Diagram.png

 

**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text 'NIVerified'. Read here for more information about the new Example Guidelines and Community Platform.**

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
cathy345
Member
Member
on

Nice, I am looking forward to try this TIFF reading method. By the way, I can use this method to load tiff image stored in web sever, isn't it?

aranS
Member
Member
on

Hi, this example just lets the user select the TIFF file from a file dialog window, but it could be modified to allow you to pull the image from another location

john1626
Member
Member
on

 Hi! Your code can read only 1 tiff image? Do you know how to read a multi-image tiff file?