Class ImageCapture


  • @Singleton
    public class ImageCapture
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void takeScreenshot​(java.awt.image.BufferedImage screenshot, java.lang.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.
      void takeScreenshot​(java.awt.image.BufferedImage screenshot, java.lang.String fileName, java.lang.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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • takeScreenshot

        public void takeScreenshot​(java.awt.image.BufferedImage screenshot,
                                   java.lang.String fileName,
                                   @Nullable
                                   java.lang.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​(java.awt.image.BufferedImage screenshot,
                                   java.lang.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).