public class ImageProcessor
extends java.lang.Object
| Constructor and Description |
|---|
ImageProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
processImageFiles(java.util.List<java.io.File> sourceFiles,
java.io.File targetFile,
int maxWidth,
int maxHeight) |
java.io.File |
scaleImage(java.io.File source,
java.io.File target,
int maxWidth,
int maxHeight,
boolean fillSpace)
Scales an image to desired dimensions.
|
public java.io.File scaleImage(java.io.File source,
java.io.File target,
int maxWidth,
int maxHeight,
boolean fillSpace)
source - file which shall be scaledtarget - location where scaled result shall be written to (directory or regular file)maxWidth - maximum width in pixels; when zero no checking is performedmaxHeight - maximum height in pixels; when zero no checking is performedfillSpace - public void processImageFiles(java.util.List<java.io.File> sourceFiles,
java.io.File targetFile,
int maxWidth,
int maxHeight)
Copyright © 2018 SAP SE. All Rights Reserved.