Class ImageCapture


  • @Singleton
    public class ImageCapture
    extends Object
    • Method Detail

      • takeScreenshot

        public void takeScreenshot​(BufferedImage screenshot,
                                   String fileName,
                                   @Nullable
                                   String subDir,
                                   boolean notify,
                                   ImageUploadStyle imageUploadStyle)
        Saves a screenshot of the client window to the screenshot folder as a PNG, and optionally uploads it to an image-hosting service.
        Parameters:
        screenshot - BufferedImage to capture.
        fileName - Filename to use, without file extension.
        subDir - Directory within the player screenshots dir to store the captured screenshot to.
        notify - Send a notification to the system tray when the image is captured.
        imageUploadStyle - which method to use to upload the screenshot (Imgur or directly to clipboard).
      • takeScreenshot

        public void takeScreenshot​(BufferedImage screenshot,
                                   String fileName,
                                   boolean notify,
                                   ImageUploadStyle imageUploadStyle)
        Saves a screenshot of the client window to the screenshot folder as a PNG, and optionally uploads it to an image-hosting service.
        Parameters:
        screenshot - BufferedImage to capture.
        fileName - Filename to use, without file extension.
        notify - Send a notification to the system tray when the image is captured.
        imageUploadStyle - which method to use to upload the screenshot (Imgur or directly to clipboard).