Class BasicFileImageRenderer

java.lang.Object
gaiasky.screenshot.BasicFileImageRenderer
All Implemented Interfaces:
IFileImageRenderer

public class BasicFileImageRenderer
extends java.lang.Object
implements IFileImageRenderer
Renders image files synchronously.
  • Constructor Summary

    Constructors
    Constructor Description
    BasicFileImageRenderer()  
  • Method Summary

    Modifier and Type Method Description
    void flush()
    Flushes the renderer causing the images to be written, if needed.
    java.lang.String saveScreenshot​(java.lang.String absoluteLocation, java.lang.String baseFileName, int w, int h, boolean immediate, GlobalConf.ImageFormat type, float quality)
    Renders a screenshot in the given location with the given prefix and the given size.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BasicFileImageRenderer

      public BasicFileImageRenderer()
  • Method Details

    • saveScreenshot

      public java.lang.String saveScreenshot​(java.lang.String absoluteLocation, java.lang.String baseFileName, int w, int h, boolean immediate, GlobalConf.ImageFormat type, float quality)
      Description copied from interface: IFileImageRenderer
      Renders a screenshot in the given location with the given prefix and the given size.
      Specified by:
      saveScreenshot in interface IFileImageRenderer
      Parameters:
      absoluteLocation - Folder to save.
      baseFileName - The file name prefix.
      w - The width.
      h - The height.
      immediate - Forces synchronous immediate write to disk.
      type - The image type, JPG or PNG
      quality - 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: IFileImageRenderer
      Flushes the renderer causing the images to be written, if needed.
      Specified by:
      flush in interface IFileImageRenderer