java.lang.Object
de.grogra.video.XLBinding
The
XLBinding
class provides access to the plugin features throw
static methods. This class has a static ImageSequence
member, which
can be modified by the method calls.
Using a static import the methods in this class can be used inside of XL code
in a GroIMP project.- Author:
- Dominick Leppich
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
clear()
Clears theImageSequence
(delete all collected images).static void
exportVideo
(String fileName, int inputFps) Export theImageSequence
to a file with given input fps values.static void
exportVideo
(String fileName, int inputFps, int outputFps) Export theImageSequence
to a file with given input and output fps values.static void
interpolate
(String strategy, int count) Interpolate between all images using the provided strategy (by its name).static void
interpolate
(String strategy, int count, int startIndex, int endIndex) Interpolate between all images betweenstartIndex
andendIndex
using the provided strategy (by its name).static void
Print all availableImageProvider
s to the command line.static void
Print all availableInterpolationStrategy
s to the command line.static void
renderImage
(String provider, int xDim, int yDim) Render an image using the providedImageProvider
(by its name) with the specified dimension and add the image to theImageSequence
.static int
size()
Return the current size of theImageSequence
.
-
Field Details
-
DEFAULT_OUTPUT_FPS
public static final int DEFAULT_OUTPUT_FPS- See Also:
-
-
Constructor Details
-
XLBinding
public XLBinding()
-
-
Method Details
-
size
public static int size()Return the current size of theImageSequence
.- Returns:
- The size of the
ImageSequence
-
clear
public static void clear()Clears theImageSequence
(delete all collected images). -
renderImage
Render an image using the providedImageProvider
(by its name) with the specified dimension and add the image to theImageSequence
.- Parameters:
provider
- - Name of theImageProvider
xDim
- - Width of the imageyDim
- - Height of the image
-
interpolate
Interpolate between all images using the provided strategy (by its name).- Parameters:
strategy
- - Name of theInterpolationStrategy
count
- - Number of new images to compute between two images
-
interpolate
Interpolate between all images betweenstartIndex
andendIndex
using the provided strategy (by its name). The indices are 1-based.- Parameters:
strategy
- - Name of theInterpolationStrategy
count
- - Number of new images to compute between two imagesstartIndex
- - First image to interpolate between (1-based)endIndex
- - Last image to interpolate between (1-based)
-
exportVideo
Export theImageSequence
to a file with given input fps values.- Parameters:
fileName
- - File name where the image will be exportedinputFps
- - Input fps of the video- Throws:
IOException
- if the process of video creation fails
-
exportVideo
Export theImageSequence
to a file with given input and output fps values.- Parameters:
fileName
- - File name where the image will be exportedinputFps
- - Input fps of the videooutputFps
- - Output fps of the video- Throws:
IOException
- if the process of video creation fails
-
printImageProviders
public static void printImageProviders()Print all availableImageProvider
s to the command line. -
printInterpolationStrategies
public static void printInterpolationStrategies()Print all availableInterpolationStrategy
s to the command line.
-