LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the standard labview color palette

Hi i am using an VI icon extracter to obtain the icon of a VI. I wish to save this icon as a *.bmp but i do not know what to use for the palette. If i send the image to the LabVIEW picture functions they draw it correctly as they contain the default colour palette. Does anybody know the default colour palette or how to get at it, thanks. Tom.
0 Kudos
Message 1 of 3
(3,773 Views)
Tom;

Once you draw the icon in the picture indicator, you can use the following vi to extract all the information you need from the picture indicator to save your icon as a .bmp file:

Picture to Pixmap

Just recall the size of the icon is 32x32 pixels.

If you are using Moore's icon tools, you can use the vi attached. Moore's tools can be found at:

http://www.mooregoodideas.com/Downloads/Downloads.htm

Regards;
Enrique
www.vartortech.com
0 Kudos
Message 2 of 3
(3,773 Views)
Tom WP wrote in message news:<5065000000080000003E4A0000-1021771306000@exchange.ni.com>...
> Hi i am using an VI icon extracter to obtain the icon of a VI. I wish
> to save this icon as a *.bmp but i do not know what to use for the
> palette. If i send the image to the LabVIEW picture functions they
> draw it correctly as they contain the default colour palette. Does
> anybody know the default colour palette or how to get at it, thanks.
> Tom.

Tom,

If you are using version 6 or higher, you can create a "standard"
Labview 256 color palette (like the one used by the 256 color icon) by
using the invoke node of any front panel object. Just create some
object, like a graph, and then right-click on its diagram terminal and
select create->invoke node.
Then select "Get Image" as the method to
invoke, and set the image depth to 8. Create an indicator for the
colors output. When you run this vi, the colors indicator will
contain the palette you are looking for. Just disconnect the
indicator after filling it and change it to a control or pop up on it
and create a constant. I have done this for the widely circulated
icon extractor VI's and it works extremely well.


gm
0 Kudos
Message 3 of 3
(3,773 Views)