public interface SpincastImageWatermarker
| Modifier and Type | Method and Description |
|---|---|
void |
watermark(String originalImagePath,
boolean onClasspath,
File targetFile)
Watermark an image.
|
void |
watermark(String originalImagePath,
File targetFile)
Watermark an image.
|
void watermark(String originalImagePath, File targetFile)
The format of the watermaked image is determined by
the extension of the targetFile (case-insensitive):
If the target file doesn't have any extension, PNG is used.
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.void watermark(String originalImagePath, boolean onClasspath, File targetFile)
The format of the watermaked image is determined by
the extension of the targetFile (case-insensitive):
If the target file doesn't have any extension, PNG is used.
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.