Interface ImageFormat

All Known Implementing Classes:
ImageFormats

public interface ImageFormat
Allows conversion of BufferedImage to byte array and vice versa.

Intended for adding custom image formats for programmatic video production and consumption.

See Also:
  • Method Details

    • getPixelFormat

      String getPixelFormat()
      Returns:
      pixel format
    • getBytesPerPixel

      int getBytesPerPixel()
      Returns:
      bytes per pixel
    • getFourCC

      byte[] getFourCC()
      Returns FOURCC (four character code).
      Returns:
      FOURCC
      See Also:
    • toImage

      BufferedImage toImage(byte[] data, int width, int height)
      Converts byte array to BufferedImage of specified size.
      Parameters:
      data - raw image data
      width - image width
      height - image height
      Returns:
      BufferedImage
    • toBytes

      byte[] toBytes(BufferedImage image)
      Converts BufferedImage to raw image data.
      Parameters:
      image - image
      Returns:
      raw data