java.lang.Object
de.grogra.video.model.VideoImage
A
VideoImage
class is a wrapper for images in the plugin. Every image
is saved to a temporary directory on the filesystem to be accessible for the
exporter at video creation time.
Additionally to the normal image, a scaled preview version is saved as well.- Author:
- Dominick Leppich
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BufferedImage
convertToBufferedImage
(Image image) Convert anImage
to aBufferedImage
in order to save it withImageIO.write(java.awt.image.RenderedImage, String, File)
.static Image
createPreviewImage
(Image image) Create a preview image with predefined dimensions.getFile()
getImage()
static File
Determine the save path for the running plugin instance.static String
Determine the path of temporary system directory
-
Field Details
-
IMAGE_TYPE
- See Also:
-
IMAGE_EXTENSION
- See Also:
-
-
Constructor Details
-
VideoImage
Create a newVideoImage
.- Parameters:
image
- - Image to wrap- Throws:
IOException
- if saving the image on the filesystem fails
-
-
Method Details
-
getImage
- Throws:
IOException
-
getPreviewImage
- Throws:
IOException
-
getFile
-
getDimension
-
getSavePath
Determine the save path for the running plugin instance.- Returns:
- Path where the
VideoImage
s will be saved
-
getSystemTempPath
Determine the path of temporary system directory- Returns:
- Path of temporary system directory
-
createPreviewImage
Create a preview image with predefined dimensions.- Parameters:
image
- - Source image- Returns:
- Scaled preview image
-
convertToBufferedImage
Convert anImage
to aBufferedImage
in order to save it withImageIO.write(java.awt.image.RenderedImage, String, File)
.- Parameters:
image
- - Image to convert- Returns:
- A
BufferedImage
containing the same image information
-