To download NI software, including the products shown below, visit ni.com/downloads.
Overview
The example demonstrates how to convert a image to a different image type.
Description
The example opens any supported image format (BMP, TIFF, JPEG, JPEG2000, PNG, AIPD) as a selectable image type (e.g. Grayscale U8, RGB U32).
The image can be converted to another image type that is used to save the image to a selectable image format (BMP, JPEG, JPEG2000, PNG, TIFF). Some image output formats can be configured with additional parameters that influence image quality and file size.
Please be advised that not every image format supports every image type, so please make sure the selected target image type is compatible.
Requirements
Software
Hardware
Steps to Implement or Execute Code
Additional Information or References
**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.
modified 2010 vi to save in same path and file name with new extension