|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Cannot make a static reference to the non-static method
Or, more specifically, "Cannot make a static reference to the non-static method getImage() from the type AxisCamera."
The code is just Code:
ColorImage image = AxisCamera.getImage(); I am sure I'm missing something simple, and/or something huge. Help would be appreciated. |
|
#2
|
|||||
|
|||||
|
Re: Cannot make a static reference to the non-static method
You need to get an instance of an AxisCamera before you can call that method.
Example: Code:
// Typically you only want to do this ONCE; camera should be a class member AxisCamera camera = AxisCamera.getInstance(); // Then you can get the image as often as you would like (but it's pretty slow, you don't want to call this more than once per 50 milliseconds or so! ColorImage image = camera.getImage(); Last edited by Jared Russell : 10-04-2012 at 20:06. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|