Quote:
Originally Posted by nickbrickmaster
Ew. If it's not visible, it's not meant to be accessible. Reflection is not a tool that should be used in this context.
|
Yes, reflection is only to be used when you know what you're doing, hence my suggestion to modify WPILib instead.
Quote:
Originally Posted by nickbrickmaster
If it's an API, it's not meant to be modified and compiled with your project. Use the tools correctly, and your problems will decrease. Use them incorrectly, and they will multiply.
|
The WPILib people actually have instructions on screensteps for compiling WPILib with your project. I don't think they would do that if they didn't want you to modify WPILib.
Quote:
Originally Posted by nickbrickmaster
As for an actual answer, you're not supposed to initialize a BinaryImage. You get them from methods like this one.
|
I don't really think that's a good answer. The C++ IMAQ API (although different from this java wrapper) allows creating binary images. Why shouldn't the Java API allow that?