12-16-2014 12:20 PM
When I select the "User defined" palette in the display, it just shows the regular grayscale palette. I want to replace this with the "Rainbow" palette but slightly modified in range. How do I do this?
Thanks!
MK
Solved! Go to Solution.
12-16-2014 07:57 PM - edited 12-16-2014 07:59 PM
Wire a new 256-element array of RGBs to the User Palette property of your image window. You can use IMAQ GetPalette to retrieve the Rainbow palette and modify that.
12-17-2014 11:26 AM
Thanks Greg, I will try that, looks like that's the ticket! 🙂
Also, something I haven't been able to figure out yet is how to find (let LabView create?) the enumerated lists that match up to whatever port needs it (in this case "Palette Type"). i've tried wiring up a blank enum but it doesn't get filled out, where can I find them or create them (without having to make them manually?)
Thanks again 🙂
12-17-2014 02:21 PM
Right-click on Palette Type and select Create Constant (or Control).