|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kaos.robots.activmedia.pioneerCamera.JMFImageCapture
public class JMFImageCapture
JMFImageCapture
Nested Class Summary | |
---|---|
protected static class |
JMFImageCapture.StatusListener
|
Constructor Summary | |
---|---|
JMFImageCapture()
|
Method Summary | |
---|---|
void |
destroy()
Destroys this instance of the JMFImageCapture class. |
protected static Buffer |
doGrabFrame()
|
Buffer |
getFrameAsBuffer()
Returns the grabbed frame as a javax.media.Buffer. |
java.awt.Image |
getFrameAsImage()
Returns the grabbed frame as a java.awt.Image. |
static java.awt.Dimension |
getFrameSize()
Returns the size of the frames being grabbed. |
static JMFImageCapture |
getInstance()
Returns a new instance of the JMFImageCapture configured to use the first video capture device class. |
static JMFImageCapture |
getInstance(java.lang.String mediaLocator)
|
Player |
getPlayer()
Returns the javax.media.Player instance being used to grab the frames. |
static java.awt.Dimension[] |
getSupportedFrameSizes()
|
boolean |
grabFrame()
Grabs a frame |
protected static void |
init()
|
protected static void |
initIfNeeded(java.lang.String mediaLocator)
|
void |
setFrameSize(java.awt.Dimension d)
Sets the size of the frames to be grabbed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JMFImageCapture()
Method Detail |
---|
public boolean grabFrame()
public Buffer getFrameAsBuffer()
public java.awt.Image getFrameAsImage()
public static java.awt.Dimension getFrameSize()
public static java.awt.Dimension[] getSupportedFrameSizes()
public void setFrameSize(java.awt.Dimension d) throws java.lang.IllegalArgumentException
d
- the size in width and height of the frame
java.lang.IllegalArgumentException
- if the specified size is not supportedpublic Player getPlayer()
public void destroy()
public static JMFImageCapture getInstance()
public static JMFImageCapture getInstance(java.lang.String mediaLocator)
protected static Buffer doGrabFrame()
protected static void initIfNeeded(java.lang.String mediaLocator) throws java.lang.Exception
java.lang.Exception
protected static void init() throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |