Example Code

Convert PNG or JPG to BMP file

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

  • LabVIEW

    Driver

  • NI Vision Acquistion Software

Code and Documents

Attachment

Overview

This example converts any jpg or png image into a bmp image type.

Decription

Convert an image type without using the Vision Development Module. Input image can be either jpg or png. Every output image will be a bmp image type.

Requirements

LabVIEW 2009 "or compatible"

Steps to Implement of Execute Code

1.) Select your input image (Needs to be a jpg or png file)

2.) Run the LabVIEW example

Note: The image will be stored automatically as "yourpicture.bmp" in the "C:\Windows" folder.

Additional Information or References

**This document has been updated to meet the current required format for the NI Code Exchange. For more details visit thisdiscussion thread**


National Instruments
Applications Engineer

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

Contributors