ni.com is currently experiencing issues. Support teams are actively working on the resolution.
We appreciate your patience as we improve our online experience.
ni.com is currently experiencing issues. Support teams are actively working on the resolution.
We appreciate your patience as we improve our online experience.
08-06-2007 08:53 AM
08-07-2007 08:34 AM
08-11-2007 07:02 AM
10-19-2015 03:47 PM
@MacleanG wrote:
Hi Waleed,
Thank you for posting to the NI forums! Your post is similar to another post about this topic, so refer to the linked forum post below for more detail on the matter. Essentially, the function you are looking for is CWIMAQPalette.SetPalette RedPlane, GreenPlane, BluePlane. If you set the colours manually, the palette type is set to user defined, otherwise the type is one of the four preset types (the binary type containing the red/black you are trying to change).
previous forum post: Can I get a different color than black in Threshold?
I hope this helps!
Hi
I bumped into this thread because I'm using a CWIMAQViewer to display a 12-bit grayscale image (0-4095). Our application gives the user the ability to specify an intensity value, say 4000, so that pixels below this value display normally as gray scale, and pixels above the value appear RED. This also needs to be achieved at runtime.
I tried to alter the palette using your your suggestion:
CWIMAQPalette.SetPalette RedPlane, GreenPlane, BluePlane
But, what is the data type of Red/Green/Blue Plane? There're 256 entries in the palette. How do I change individual entries?
I guess the more general quesiton is:
Where can I find the programming APIs of the CWIMAQContrlLibrary for VisualStudio.net? I will need to use other controls and functions in the library, and without the API it's impossible.
Thanks.
10-20-2015 09:55 AM
Hi aoslo,
Your questions will receive more attention by creating a new thread. It's not recommended to post on extremely old threads which I believe this thread qualifies as. Below I've linked the NI Discussion Forums User Guidelines as well as general getting started resources.
http://forums.ni.com/t5/Getting-Started-on-the-NI/NI-Discussion-Forums-User-Guidelines/td-p/3164638
http://forums.ni.com/t5/Getting-Started-on-the-NI/bd-p/gettingstarted
I hope this helps!
- Kale