Class WriteableImageFactory

  • All Implemented Interfaces:
    ImageFactory<javafx.scene.image.WritableImage>

    public class WriteableImageFactory
    extends Object
    implements ImageFactory<javafx.scene.image.WritableImage>

    Imagefactory implementation for JavaFX's WritableImage

    Since:
    1.2
    Author:
    Christoph Praschl
    • Constructor Detail

      • WriteableImageFactory

        public WriteableImageFactory()
        Do not instantiate this class directly. This constructor is only need, to work with ServiceLoader. Get yourself an instance using ImageFactoryFactory.getImageFactory(Class) method. Using class = ImageProcessor.class for this specific factory.
    • Method Detail

      • getImage

        public ImageWrapper<javafx.scene.image.WritableImage> getImage​(int height,
                                                                       int width,
                                                                       ChannelType channel)
        Description copied from interface: ImageFactory
        Creates a image with the given height, width and channeltype
        Specified by:
        getImage in interface ImageFactory<javafx.scene.image.WritableImage>
        Parameters:
        height - height of the image
        width - width of the image
        channel - channeltype of the image
        Returns:
        image with the given properties
      • getImage

        public ImageWrapper<javafx.scene.image.WritableImage> getImage​(int height,
                                                                       int width,
                                                                       ChannelType channel,
                                                                       javafx.scene.image.WritableImage image)
        Description copied from interface: ImageFactory
        Creates a image with the given height, width and channeltype
        Specified by:
        getImage in interface ImageFactory<javafx.scene.image.WritableImage>
        Parameters:
        height - height of the image
        width - width of the image
        channel - channel type of the image
        image - the data which should be encapsulated in the image
        Returns:
        image with the given properties
      • getImage

        public ImageWrapper<javafx.scene.image.WritableImage> getImage​(javafx.scene.image.WritableImage image)
        Description copied from interface: ImageFactory
        Creates a image with the given image
        Specified by:
        getImage in interface ImageFactory<javafx.scene.image.WritableImage>
        Parameters:
        image - the data which should be encapsulated in the image
        Returns:
        image with the given properties
      • getSupportedType

        public Class<javafx.scene.image.WritableImage> getSupportedType()
        Specified by:
        getSupportedType in interface ImageFactory<javafx.scene.image.WritableImage>
        Returns:
        the supported image type.