Module video

Class XLBinding

java.lang.Object
de.grogra.video.XLBinding

public class XLBinding extends Object
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 Details

  • Constructor Details

    • XLBinding

      public XLBinding()
  • Method Details

    • size

      public static int size()
      Return the current size of the ImageSequence.
      Returns:
      The size of the ImageSequence
    • clear

      public static void clear()
      Clears the ImageSequence (delete all collected images).
    • renderImage

      public static void renderImage(String provider, int xDim, int yDim)
      Render an image using the provided ImageProvider (by its name) with the specified dimension and add the image to the ImageSequence.
      Parameters:
      provider - - Name of the ImageProvider
      xDim - - Width of the image
      yDim - - Height of the image
    • interpolate

      public static void interpolate(String strategy, int count)
      Interpolate between all images using the provided strategy (by its name).
      Parameters:
      strategy - - Name of the InterpolationStrategy
      count - - Number of new images to compute between two images
    • interpolate

      public static void interpolate(String strategy, int count, int startIndex, int endIndex)
      Interpolate between all images between startIndex and endIndex using the provided strategy (by its name). The indices are 1-based.
      Parameters:
      strategy - - Name of the InterpolationStrategy
      count - - Number of new images to compute between two images
      startIndex - - First image to interpolate between (1-based)
      endIndex - - Last image to interpolate between (1-based)
    • exportVideo

      public static void exportVideo(String fileName, int inputFps) throws IOException
      Export the ImageSequence to a file with given input fps values.
      Parameters:
      fileName - - File name where the image will be exported
      inputFps - - Input fps of the video
      Throws:
      IOException - if the process of video creation fails
    • exportVideo

      public static void exportVideo(String fileName, int inputFps, int outputFps) throws IOException
      Export the ImageSequence to a file with given input and output fps values.
      Parameters:
      fileName - - File name where the image will be exported
      inputFps - - Input fps of the video
      outputFps - - Output fps of the video
      Throws:
      IOException - if the process of video creation fails
    • printImageProviders

      public static void printImageProviders()
      Print all available ImageProviders to the command line.
    • printInterpolationStrategies

      public static void printInterpolationStrategies()
      Print all available InterpolationStrategys to the command line.