View Single Post
  #7   Spotlight this post!  
Unread 25-06-2016, 18:04
euhlmann's Avatar
euhlmann euhlmann is offline
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 312
euhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud of
Re: Method From ColorImage

Quote:
Originally Posted by nickbrickmaster View Post
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 View Post
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 View Post
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?
__________________
Creator of SmartDashboard.js, an extensible nodejs/webkit replacement for SmartDashboard


https://ligerbots.org

Last edited by euhlmann : 25-06-2016 at 18:14.
Reply With Quote