public class PerfoScanFolder
extends java.lang.Object
Constructor and Description |
---|
PerfoScanFolder(java.io.File folder)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
addNewImage(java.awt.Image image)
Store a new Image in the store, return the count number
|
java.io.File |
constructImageFile(int sequence)
construct the image file object
|
java.lang.String |
constructImageName(int sequence)
construct the image name from index
|
void |
deleteAllImages()
delete all images
|
int |
getFirstImageIndex()
find the first index in the image
|
java.io.File |
getFolder()
get wurrent working folder
|
int |
getImageCount()
count the number of images in folder assuming there are continuous
|
java.awt.image.BufferedImage |
loadImage(int sequence)
load the image from index
|
public PerfoScanFolder(java.io.File folder)
folder
- public int getImageCount()
public int getFirstImageIndex()
public void deleteAllImages()
public int addNewImage(java.awt.Image image) throws java.lang.Exception
image
- java.lang.Exception
public java.lang.String constructImageName(int sequence)
sequence
- public java.io.File constructImageFile(int sequence)
sequence
- public java.awt.image.BufferedImage loadImage(int sequence) throws java.lang.Exception
sequence
- java.lang.Exception
public java.io.File getFolder()