View Single Post
  #4   Spotlight this post!  
Unread 25-06-2016, 16:05
Ouroboroz Ouroboroz is offline
Registered User
AKA: Kevin
FRC #2554 (The Warhawks)
Team Role: Programmer
 
Join Date: Apr 2016
Rookie Year: 2014
Location: Edison NJ
Posts: 8
Ouroboroz is an unknown quantity at this point
Re: Method From ColorImage

Quote:
Originally Posted by euhlmann View Post
1. Yeah, that doesn't make a lot of sense. Maybe free() doesn't always do what we think it does? (not likely)

2. Reflection!
Code:
Constructor<BinaryImage> ct = BinaryImage.class.getDeclaredConstructor();
ct.setAccessible(true);
BinaryImage img = ct.newInstance();
Or modify WPILib and compile it together with your project, probably a solution that makes more sense.
Wait would casting MonoImage into BinaryImage work too?
Reply With Quote