VI class/VI Icon.Set From Image Data method
VI Server Method Information | |
---|---|
Method ID | 422 |
Scope | Basic Development Environment |
Data Name | VI Icon.Set from Image Data |
Short Name* | VI Icon.Set from Image Data |
Long Name* | VI Icon:Set From Image Data |
* Displayed here in English. Short and Long names appear in the language of the LabVIEW IDE. | |
Owning Class ID | 2 |
Owning Class Name | VI Class |
Return Data Type | No return value |
Invoke Node | |
Available in Real-Time Operating System | Yes |
Available in Run-Time Engine | No |
Available with control VIs | Yes |
Available with global VIs | Yes |
Available with polymorphic VIs | Yes |
Available with strict type definitions | No |
Loads the block diagram into memory | No |
Loads the front panel into memory | No |
Must wait until user interface is idle | No |
Need to authenticate before use | Yes |
Remote access allowed | Yes |
Settable when the VI is running | Yes |
Sets a VI icon from image data you specify. LabVIEW creates a user layer called VI Icon for the image and deletes any other existing icon information from the Icon Editor dialog box.
If you want to use a pixmap to set the icon, use the Flatten Pixmap VI to convert the data to an image data cluster before using this method. If you want to use a picture to set the icon, use the Picture to Pixmap VI to convert the data to an image data cluster before using this method. Use the Create Mask VI to make a certain color in the image data transparent before wiring the image data to this method.
This method converts the image data you wire to an input to the appropriate color depth. For example, if you wire 4-bit image data to the Color256 input, this method converts the image data to a color depth of 8-bit.
If you do not wire image data to the Color16 input, LabVIEW converts the image data you wire to the Color256 input to a color depth of 4-bit. If you do not wire image data to the Monochrome input, LabVIEW converts the image data you wire to the Color16 input, if available, to a color depth of 1-bit. Otherwise, LabVIEW converts the image data you wire to the Color256 input to a color depth of 1-bit.
If the image data you wire to this method describes an image larger or smaller than 32 × 32 pixels, the method resizes the image to 32 × 32 pixels.
You also can use the VI Icon:Set from File method to set a VI icon from an image file.
Parameters
Uses
Specific use cases for this method. |
History
History information is needed. What changes have occurred over previous versions? |
Version | Change(s) |
---|---|
More info to come. |
See Also
Add links to internal wiki pages that would also help. |
External Links
Add links to external resources that would also help. |