Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting the display to binary

Does anyone know how to set the CWIMAQViewer Palette to binary using C++? I know how to do it in Visual Basic, but I can't figure it out in C++. I need to do it programatically. Thanks in advance.
0 Kudos
Message 1 of 2
(2,797 Views)
To Set the viewer to binary:

m_cViewer.GetPalette().SetType(4096);

I don't know where 4096 is defined...

To Set the viewer to grayscale:

m_cViewer.GetPalette().SetType(2048);

Again, I don't know where this is defined. To get these values I just inserted the line,

long paletteType=m_cViewer.GetPalette().GetType();

and ran the debugger to see what it set paletteType to when I changed the palette using the viewer's palette menu.
0 Kudos
Message 2 of 2
(2,797 Views)