Class ImageScaler
- java.lang.Object
-
- de.narimo.georepo.server.providers.ImageScaler
-
-
Constructor Summary
Constructors Constructor Description ImageScaler(InputStream fileInputStream)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FileOutputStreamgetFos()static voidmain(String[] args)static BufferedImageresizeImage(BufferedImage originalImage, int targetWidth, int targetHeight)voidrun()
-
-
-
Constructor Detail
-
ImageScaler
public ImageScaler(InputStream fileInputStream) throws IOException
- Throws:
IOException
-
-
Method Detail
-
resizeImage
public static BufferedImage resizeImage(BufferedImage originalImage, int targetWidth, int targetHeight) throws IOException
- Throws:
IOException
-
getFos
public FileOutputStream getFos()
-
main
public static void main(String[] args) throws IOException
- Throws:
IOException
-
-