All Downloads are FREE. Search and download functionalities are using the official Maven repository.

public.javadoc.org.spincast.plugins.watermarker.SpincastImageWatermarker.html Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version






SpincastImageWatermarker (org.spincast:spincast-framework 1.0.0 API)












org.spincast.plugins.watermarker

Interface SpincastImageWatermarker

    • Method Detail

      • watermark

        void watermark(String originalImagePath,
                       File targetFile)
        Watermark an image.

        The format of the watermaked image is determined by the extension of the targetFile (case-insensitive):

        • .jpg or .jpeg => JPEG
        • .gif => GIF
        • .png => PNG

        If the target file doesn't have any extension, PNG is used.

        Parameters:
        originalImage - The image to watermark, on the file system.
        targetFile - The file where the watermarked version will be saved. If this file already exists, it is overwritten.
      • watermark

        void watermark(String originalImagePath,
                       boolean onClasspath,
                       File targetFile)
        Watermark an image.

        The format of the watermaked image is determined by the extension of the targetFile (case-insensitive):

        • .jpg or .jpeg => JPEG
        • .gif => GIF
        • .png => PNG

        If the target file doesn't have any extension, PNG is used.

        Parameters:
        originalImage - The image to watermark.
        onClasspath - If true, the original image will be taken from the classpath. Otherwise its path must be a path on the file system.
        targetFile - The file where the watermarked version will be saved. If this file already exists, it is overwritten.

Copyright © 2019. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy