public class KBImageTool extends Object
| Constructor and Description |
|---|
KBImageTool() |
| Modifier and Type | Method and Description |
|---|---|
static BufferedImage |
combineImages(BufferedImage[] images,
String mime)
Method which handles the combining of the images.
|
static String |
getMimeType(String mime)
Private method which seeks through the supported MIME types to check if
a certain MIME is supported.
|
static BufferedImage |
readImage(InputStream is,
String mime,
ServiceProviderRequest wmsRequest)
Reads an image from an http input stream.
|
static void |
writeImage(BufferedImage[] images,
String mime,
DataWrapper dw)
First combines the given images to one image and then sends this image back to the client.
|
public static BufferedImage readImage(InputStream is, String mime, ServiceProviderRequest wmsRequest) throws Exception
is - Inputstreammime - String representing the mime type of the image.Exceptionpublic static void writeImage(BufferedImage[] images, String mime, DataWrapper dw) throws Exception
images - BufferedImage array with the images tha have to be combined and sent to the client.mime - String representing the mime type of the image.dw - DataWrapper object in which the request object is stored.Exceptionpublic static BufferedImage combineImages(BufferedImage[] images, String mime)
images - BufferedImage array with the images tha have to be combined.mime - String representing the mime type of the image.Copyright © 2016. All rights reserved.