public class MovieConverter
extends java.lang.Object
Constructor and Description |
---|
MovieConverter() |
Modifier and Type | Method and Description |
---|---|
static void |
convertToMovie(VirtualBook vb,
Instrument ins,
java.io.File resultFile,
ProgressIndicator progress,
ICancelTracker cancelTracker,
MovieConverterParameters parameters)
Convert a virtual book rendering to movie file ..
|
static java.awt.image.BufferedImage |
createImage(javax.swing.JComponent comp)
create an image of a component, the size of the image is defined by the
preferredsize of the component
|
static java.lang.String |
createJPEGSnapShot(java.io.File folder,
java.lang.String filename,
javax.swing.JComponent comp)
Create a jpeg snapshot of a component,
|
public static java.lang.String createJPEGSnapShot(java.io.File folder, java.lang.String filename, javax.swing.JComponent comp) throws java.lang.Exception
folder
- the result folderfilename
- the file name (with jpg extension)comp
- the component to render, it use the preferred size for the size of the imagejava.lang.Exception
public static java.awt.image.BufferedImage createImage(javax.swing.JComponent comp)
comp
- the component to renderpublic static void convertToMovie(VirtualBook vb, Instrument ins, java.io.File resultFile, ProgressIndicator progress, ICancelTracker cancelTracker, MovieConverterParameters parameters) throws java.lang.Exception
vb
- the virtual bookins
- the instrument associated to itresultFile
- the result file ...java.lang.Exception