Class Camera.Frame

  • Enclosing interface:
    Camera

    public static class Camera.Frame
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Frame​(java.awt.image.BufferedImage image)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.image.BufferedImage getBufferedImage()
      Returns the camera frame as a BufferedImage object.
      javafx.scene.image.Image getFXImage()
      Returns the camera frame as a JavaFX Image object.
      void saveJPG​(java.lang.String path)
      Saves the captured camera frame as a JPEG file.
      void savePNG​(java.lang.String path)
      Saves the captured camera frame as a PNG file.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Frame

        public Frame​(java.awt.image.BufferedImage image)
    • Method Detail

      • savePNG

        public void savePNG​(java.lang.String path)
                     throws java.io.IOException
        Saves the captured camera frame as a PNG file.
        Parameters:
        path - Path to write image to
        Throws:
        java.io.IOException - Upon error writing to file
      • saveJPG

        public void saveJPG​(java.lang.String path)
                     throws java.io.IOException
        Saves the captured camera frame as a JPEG file.
        Parameters:
        path - Path to write image to
        Throws:
        java.io.IOException - Upon error writing to file
      • getFXImage

        public javafx.scene.image.Image getFXImage()
        Returns the camera frame as a JavaFX Image object.
        Returns:
        JavaFX Image object
      • getBufferedImage

        public java.awt.image.BufferedImage getBufferedImage()
        Returns the camera frame as a BufferedImage object.
        Returns:
        BufferedImage object