Class BasicFileImageRenderer
java.lang.Object
gaiasky.util.screenshot.BasicFileImageRenderer
- All Implemented Interfaces:
IFileImageRenderer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidflush()Flushes the renderer causing the images to be written, if needed.saveScreenshot(String absoluteLocation, String baseFileName, int w, int h, boolean immediate, Settings.ImageFormat format, float quality) Renders a screenshot in the given location with the given prefix and the given size.
-
Constructor Details
-
BasicFileImageRenderer
public BasicFileImageRenderer()
-
-
Method Details
-
saveScreenshot
public String saveScreenshot(String absoluteLocation, String baseFileName, int w, int h, boolean immediate, Settings.ImageFormat format, float quality) Description copied from interface:IFileImageRendererRenders a screenshot in the given location with the given prefix and the given size.- Specified by:
saveScreenshotin interfaceIFileImageRenderer- Parameters:
absoluteLocation- Folder to save.baseFileName- The file name prefix.w- The width.h- The height.immediate- Forces synchronous immediate write to disk.format- The image type, JPG or PNGquality- The quality in the case of JPG in [0..1]- Returns:
- String with the path to the screenshot image file
-
flush
public void flush()Description copied from interface:IFileImageRendererFlushes the renderer causing the images to be written, if needed.- Specified by:
flushin interfaceIFileImageRenderer
-