LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

OLE Color Conversion

I became acorss the function below.  What is the relationship between OLE and RGB color?  Can you give me some background on them?  For the function below, is the input supposed to be OLE or RGB?  Thanks!

 

Convert OLE Color VI

Owning Palette: 3D Graph Properties VIs

Requires: Base Package (Windows)

Converts LabVIEW colors to or from colors used by ActiveX.

You can use the property page for the 3D graph to set all of the colors. Color conversion is necessary for use with ActiveX Property Nodes.

 

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
Message 1 of 4
(4,071 Views)

http://lmgtfy.com/?q=OLE+Color+RGB

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 2 of 4
(4,065 Views)

haha, I already googled that.  I didn't find a good answer.  

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 3 of 4
(4,057 Views)

If you would read throught he examples and source code you would have found your answer! MSDN has to say this http://msdn.microsoft.com/en-us/library/windows/desktop/ms694353%28v=vs.85%29.aspx. Basically if the MSB is 0, the other 3 bytes are directly RGB colors, otherwise they are either a system color index or palette index. The LabVIEW Color is built in a similar way, but the meaning of the MSB is different.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 4 of 4
(4,053 Views)