Academic Company Events Community Support Solutions Products & Services Contact NI MyNI
13 ratings:
 3.61 out of 5   

Flatten and Unflatten Pixmap VIs in LabVIEW



Primary Software: LabVIEW Development Systems>>LabVIEW Full Development System
Primary Software Version: 7.1
Primary Software Fixed Version: N/A
Secondary Software: LabVIEW Development Systems

Problem:
What is the purpose of the Flatten and Unflatten Pixmap VIs?

Solution:
Images can be represented in two ways in LabVIEW.  The first representation is that of a "flat pixmap", which is a 1D array. The Get Panel Image method returns a flat pixmap, for example.  Certain VIs, such as the Write BMP File, Write PNG File, and Write JPEG File VIs, require a flat pixmap.

If you want to display a flat pixmap in an Intensity Graph, you must unflatten the pixmap.  An unflattened pixmap is a 2D array that can be wired to an Intensity Graph. You may also wire an unflattened pixmap to one of the following VIs: Draw 1-bit Pixmap, Draw 4-bit Pixmap, Draw 8-bit Pixmap, and Draw True Color Pixmap. These VIs provide a picture as an output, which can be displayed in a Picture Indicator.

Unflatten Pixmap to Intensity Graph Snippet

If you want to display a flattened pixmap in a Picture Indicator, then use the Draw Flattened Pixmap VI.


Related Links:

LabVIEW Help: Flatten Pixmap VI
LabVIEW Help: Unflatten Pixmap VI


Attachments:
unflatten_example.vi




Report Date: 02/01/1999
Last Updated: 09/22/2017
Document ID: DIRECT-44PMFD

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit