public class SpinningImageVideo extends Video<MBFImage>
currentFrame| Constructor and Description |
|---|
SpinningImageVideo(MBFImage image,
float start,
float step)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
adjustSpeed(float f)
Adjust the speed
|
long |
countFrames()
Return the number of frames in the whole video.
|
MBFImage |
getCurrentFrame()
Get the current frame
|
double |
getFPS()
Get the frame rate
|
int |
getHeight()
Get the height of the video frame.
|
MBFImage |
getNextFrame()
Get the next frame.
|
long |
getTimeStamp()
Get the timestamp of the current frame in milliseconds
|
int |
getWidth()
Get the width of the video frame
|
boolean |
hasNextFrame()
Returns whether this video has another frame to provide.
|
void |
reset()
Reset the video - putting the frame counter back to the start.
|
void |
stop()
Stop the video
|
void |
togglePause()
Pause or unpause the video
|
close, getCurrentFrameIndex, iterator, seek, setCurrentFrameIndexclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic SpinningImageVideo(MBFImage image, float start, float step)
image - The image to spin.start - Starting angle.step - Step angle between frames.public MBFImage getNextFrame()
VideogetNextFrame in class Video<MBFImage>public MBFImage getCurrentFrame()
VideogetCurrentFrame in class Video<MBFImage>public int getWidth()
Videopublic int getHeight()
Videopublic long getTimeStamp()
VideogetTimeStamp in class Video<MBFImage>public boolean hasNextFrame()
VideohasNextFrame in class Video<MBFImage>public long countFrames()
VideocountFrames in class Video<MBFImage>public void reset()
Videopublic void stop()
public void adjustSpeed(float f)
f - frame rate incrementpublic void togglePause()