Package org.libheiffx

Class HEIFImageLoaderFactory

java.lang.Object
org.libheiffx.HEIFImageLoaderFactory
All Implemented Interfaces:
com.sun.javafx.iio.ImageLoaderFactory

public class HEIFImageLoaderFactory extends Object implements com.sun.javafx.iio.ImageLoaderFactory
Class to install the TIFF renderer to the javafx image systems
Author:
selfemp
  • Constructor Details

    • HEIFImageLoaderFactory

      public HEIFImageLoaderFactory()
  • Method Details

    • install

      public static final void install(String tempdir)
      Main method to install the image handler to support any loading of images with the Image class
      Parameters:
      tempdir - the directory to specify where the native libs are extracted. Import on OSX because there is a bug on Apple side preventing using the temporary directory
    • install

      public static final void install()
      Main method to install the image handler to support any loading of images with the Image class
    • install

      public static final void install(org.librawfx.dimension.DimensionProvider dimensionProvider)
    • getInstance

      public static final com.sun.javafx.iio.ImageLoaderFactory getInstance()
    • getFormatDescription

      public com.sun.javafx.iio.ImageFormatDescription getFormatDescription()
      Specified by:
      getFormatDescription in interface com.sun.javafx.iio.ImageLoaderFactory
    • createImageLoader

      public com.sun.javafx.iio.ImageLoader createImageLoader(InputStream input) throws IOException
      Specified by:
      createImageLoader in interface com.sun.javafx.iio.ImageLoaderFactory
      Throws:
      IOException