Modifier and Type | Field and Description |
---|---|
static int |
FILE_TYPE_BMP
Represents the file type ".bmp"
|
static int |
FILE_TYPE_JPG
Represents the file type ".jpg"
|
static int |
FILE_TYPE_PNG
Represents the file type ".png"
|
Constructor and Description |
---|
ImageSequence(java.io.File pFirstImageFile)
The constructor allows the creation of an image sequence based on the scheme of the first filename.
|
ImageSequence(java.io.File[] pFiles)
The constructor allows the creation of an image sequence based on images with arbitrary filenames.
|
ImageSequence(java.lang.String pBaseFileName,
int iStartFrame,
int iEndFrame,
int iFileType)
The constructor initializes the member variables specifying the filename, start and end frame,
filetype, framenumber and number of positions of the running index in the image sequence.
|
ImageSequence(java.util.Vector<java.lang.String> pFileNames)
The constructor allows the creation of an image sequence based on images with arbitrary filenames.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
combineAndSaveFourImages(java.awt.image.BufferedImage pImage1,
java.awt.image.BufferedImage pImage2,
java.awt.image.BufferedImage pImage3,
java.awt.image.BufferedImage pImage4,
int iFrameID,
java.lang.String pFileBaseName,
int iFileType)
Combines the four given images into one and saves the combined image into a file with the given filebasename and
the given index.
|
static boolean |
combineAndSaveFourImagesWithLeadingZeros(java.awt.image.BufferedImage pImage1,
java.awt.image.BufferedImage pImage2,
java.awt.image.BufferedImage pImage3,
java.awt.image.BufferedImage pImage4,
int iFrameID,
java.lang.String pFileBaseName,
int iFileType,
int iFrameNum)
Combines the four given images into one and saves the combined image into a file with the given filebasename
and the given index.
|
static boolean |
combineAndSaveTwoImages(java.awt.image.BufferedImage pImage1,
java.awt.image.BufferedImage pImage2,
int iFrameID,
java.lang.String pFileBaseName,
int iFileType)
Combines the two given images into one and saves the combined image into a file with the given filebasename and
the given index.
|
static boolean |
combineAndSaveTwoImagesWithLeadingZeros(java.awt.image.BufferedImage pImage1,
java.awt.image.BufferedImage pImage2,
int iFrameID,
java.lang.String pFileBaseName,
int iFileType,
int iFrameNum)
Combines the two given images into one and saves the combined image into a file with the given filebasename
and the given index.
|
java.awt.image.BufferedImage |
getFrame(int iFrameID)
Returns the frame of the image sequence with the given frameID.
|
int |
getFrameNumber()
Returns the number of frames in the image sequence.
|
static boolean |
saveImage(java.awt.image.BufferedImage pImage,
java.io.File pFile)
Saves a given image into a file defined by a parameter of the type
File . |
static boolean |
saveImage(java.awt.image.BufferedImage pImage,
int iFrameID,
java.lang.String pFileBaseName,
int iFileType)
Saves a given image into a file with the given filebasename and the given index.
|
static boolean |
saveImageWithLeadingZeros(java.awt.image.BufferedImage pImage,
int iFrameID,
java.lang.String pFileBaseName,
int iFileType,
int iFrameNum)
Saves a given image into a file with the given filebasename and the given index.
|
public static final int FILE_TYPE_BMP
public static final int FILE_TYPE_JPG
public static final int FILE_TYPE_PNG
public ImageSequence(java.lang.String pBaseFileName, int iStartFrame, int iEndFrame, int iFileType)
pBaseFileName
- String indicating the filename before the index part of the image files.iStartFrame
- Integer indicating the index of the first frame of the image sequence.iEndFrame
- Integer indicating the index of the last frame of the image sequence.iFileType
- The filetype of the images. Valid values are (FILE_TYPE_BMP, FILE_TYPE_JPG, FILE_TYPE_PNG)public ImageSequence(java.util.Vector<java.lang.String> pFileNames)
Vector
of String
objects. The order
of these objects is not changed. Thus the position of an image in the sequence is determined by the position
of its filename in the Vector
object.pFileNames
- The Vector
holding the filenames of the images as String
objects.public ImageSequence(java.io.File[] pFiles)
File
objects. The order
of these objects is not changed. Thus the position of an image in the sequence is determined by the position
of its filename in the array.pFiles
- The array of File
objects representing the images of the image sequence.public ImageSequence(java.io.File pFirstImageFile)
pFirstImageFile
- The File
object representing the first frame of the image sequence.public int getFrameNumber()
getFrameNumber
in interface IVideo
public java.awt.image.BufferedImage getFrame(int iFrameID)
public static boolean saveImage(java.awt.image.BufferedImage pImage, int iFrameID, java.lang.String pFileBaseName, int iFileType)
pImage
- BufferedImage object representing the image that should be saved.iFrameID
- Integer indicating the index of image file.pFileBaseName
- String indicating the filename before the index part of the image file.iFileType
- The filetype of the images. Valid values are (FILE_TYPE_BMP, FILE_TYPE_JPG, FILE_TYPE_PNG)public static boolean saveImage(java.awt.image.BufferedImage pImage, java.io.File pFile)
File
.pImage
- BufferedImage object representing the image that should be saved.pFile
- The File
object that defines into which file the image should be saved.public static boolean saveImageWithLeadingZeros(java.awt.image.BufferedImage pImage, int iFrameID, java.lang.String pFileBaseName, int iFileType, int iFrameNum)
pImage
- BufferedImage object representing the image that should be saved.iFrameID
- Integer indicating the index of image file.pFileBaseName
- String indicating the filename before the index part of the image file.iFileType
- The filetype of the images. Valid values are (FILE_TYPE_BMP, FILE_TYPE_JPG, FILE_TYPE_PNG)iFrameNum
- The number of frames that the image sequence has.public static boolean combineAndSaveTwoImages(java.awt.image.BufferedImage pImage1, java.awt.image.BufferedImage pImage2, int iFrameID, java.lang.String pFileBaseName, int iFileType)
pImage1
- BufferedImage object representing the first image that should be combined and saved.pImage2
- BufferedImage object representing the second image that should be combined and saved.iFrameID
- Integer indicating the index of image file.pFileBaseName
- String indicating the filename before the index part of the image file.iFileType
- The filetype of the images. Valid values are (FILE_TYPE_BMP, FILE_TYPE_JPG, FILE_TYPE_PNG)public static boolean combineAndSaveTwoImagesWithLeadingZeros(java.awt.image.BufferedImage pImage1, java.awt.image.BufferedImage pImage2, int iFrameID, java.lang.String pFileBaseName, int iFileType, int iFrameNum)
pImage1
- BufferedImage object representing the first image that should be combined and saved.pImage2
- BufferedImage object representing the second image that should be combined and saved.iFrameID
- Integer indicating the index of image file.pFileBaseName
- String indicating the filename before the index part of the image file.iFileType
- The filetype of the images. Valid values are (FILE_TYPE_BMP, FILE_TYPE_JPG, FILE_TYPE_PNG)iFrameNum
- The number of frames that the image sequence has.public static boolean combineAndSaveFourImages(java.awt.image.BufferedImage pImage1, java.awt.image.BufferedImage pImage2, java.awt.image.BufferedImage pImage3, java.awt.image.BufferedImage pImage4, int iFrameID, java.lang.String pFileBaseName, int iFileType)
pImage1
- BufferedImage object representing the first image that should be combined and saved.pImage2
- BufferedImage object representing the second image that should be combined and saved.pImage3
- BufferedImage object representing the third image that should be combined and saved.pImage4
- BufferedImage object representing the fourth image that should be combined and saved.iFrameID
- Integer indicating the index of image file.pFileBaseName
- String indicating the filename before the index part of the image file.iFileType
- The filetype of the images. Valid values are (FILE_TYPE_BMP, FILE_TYPE_JPG, FILE_TYPE_PNG)public static boolean combineAndSaveFourImagesWithLeadingZeros(java.awt.image.BufferedImage pImage1, java.awt.image.BufferedImage pImage2, java.awt.image.BufferedImage pImage3, java.awt.image.BufferedImage pImage4, int iFrameID, java.lang.String pFileBaseName, int iFileType, int iFrameNum)
pImage1
- BufferedImage object representing the first image that should be combined and saved.pImage2
- BufferedImage object representing the second image that should be combined and saved.pImage3
- BufferedImage object representing the third image that should be combined and saved.pImage4
- BufferedImage object representing the fourth image that should be combined and saved.iFrameID
- Integer indicating the index of image file.pFileBaseName
- String indicating the filename before the index part of the image file.iFileType
- The filetype of the images. Valid values are (FILE_TYPE_BMP, FILE_TYPE_JPG, FILE_TYPE_PNG)iFrameNum
- The number of frames that the image sequence has.