java.lang.Object
com.sun.javafx.iio.common.ImageLoaderImpl
org.libheiffx.HEIFImageLoader
- All Implemented Interfaces:
com.sun.javafx.iio.ImageLoader
public class HEIFImageLoader
extends com.sun.javafx.iio.common.ImageLoaderImpl
Class to load the raw image requested by the input stream
- Author:
- Clemens Lanthaler
-
Field Summary
Fields inherited from class com.sun.javafx.iio.common.ImageLoaderImpl
formatDescription, lastPercentDone, listeners -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHEIFImageLoader(InputStream input, org.librawfx.dimension.DimensionProvider dimensionProvider) -
Method Summary
Modifier and TypeMethodDescriptionfloatvoiddispose()protected voidemitWarning(String string) floatcom.sun.javafx.iio.ImageFrameload(int imageIndex, int width, int height, boolean preserveAspectRatio, boolean smooth) protected voidupdateImageMetadata(com.sun.javafx.iio.ImageMetadata im) protected voidupdateImageProgress(float f) voidupdateImageProgress(int outLinesDecoded, int outHeight) Method called by the class LibheifImage to update the progressMethods inherited from class com.sun.javafx.iio.common.ImageLoaderImpl
addListener, getFormatDescription, removeListener
-
Constructor Details
-
HEIFImageLoader
protected HEIFImageLoader(InputStream input, org.librawfx.dimension.DimensionProvider dimensionProvider)
-
-
Method Details
-
dispose
public void dispose() -
updateImageMetadata
protected void updateImageMetadata(com.sun.javafx.iio.ImageMetadata im) - Overrides:
updateImageMetadatain classcom.sun.javafx.iio.common.ImageLoaderImpl
-
updateImageProgress
protected void updateImageProgress(float f) - Overrides:
updateImageProgressin classcom.sun.javafx.iio.common.ImageLoaderImpl
-
emitWarning
- Overrides:
emitWarningin classcom.sun.javafx.iio.common.ImageLoaderImpl
-
load
public com.sun.javafx.iio.ImageFrame load(int imageIndex, int width, int height, boolean preserveAspectRatio, boolean smooth) throws IOException - Throws:
IOException
-
getPixelScale
public float getPixelScale() -
calculateMaxRenderScale
public float calculateMaxRenderScale() -
updateImageProgress
public void updateImageProgress(int outLinesDecoded, int outHeight) Method called by the class LibheifImage to update the progress- Parameters:
outLinesDecoded- Lines decodedoutHeight- overall height of the native image
-