public class ImageServiceImpl extends Object implements com.eurodyn.qlack2.fuse.imaging.api.ImageService
| Constructor and Description |
|---|
ImageServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
addBorder(byte[] image,
int size,
double[] borderColor) |
byte[] |
adjustBrightness(byte[] image,
double brightnessFactor) |
byte[] |
adjustColor(byte[] image,
int[] bits) |
byte[] |
adjustContrast(byte[] image,
double contrastFactor) |
byte[] |
convertImage(byte[] image,
String format) |
byte[] |
convertToGrayscale(byte[] image) |
byte[] |
cropImage(byte[] image,
float xCoordinate,
float yCoordinate,
float xSize,
float ySize) |
com.eurodyn.qlack2.fuse.imaging.api.dto.ImageInfo |
getImageInfo(byte[] image) |
byte[] |
invertImage(byte[] image) |
byte[] |
overlayImage(byte[] image,
byte[] overlay,
int xCoordinate,
int yCoordinate) |
byte[] |
overlayImage(byte[] image,
Image overlay,
int xCoordinate,
int yCoordinate) |
byte[] |
overlayText(byte[] image,
com.eurodyn.qlack2.fuse.imaging.api.dto.OverlayTextDTO overlay) |
byte[] |
rotateImage(byte[] image,
float xCoordinate,
float yCoordinate,
float angle) |
byte[] |
scaleImage(byte[] image,
float scaleFactor) |
byte[] |
scaleImage(byte[] image,
float xFactor,
float yFactor) |
byte[] |
scaleImage(byte[] image,
int width) |
byte[] |
scaleImage(byte[] image,
int width,
int height) |
public com.eurodyn.qlack2.fuse.imaging.api.dto.ImageInfo getImageInfo(byte[] image)
throws com.eurodyn.qlack2.fuse.imaging.api.exception.QImageCannotBeRetrievedException
getImageInfo in interface com.eurodyn.qlack2.fuse.imaging.api.ImageServicecom.eurodyn.qlack2.fuse.imaging.api.exception.QImageCannotBeRetrievedExceptionpublic byte[] convertImage(byte[] image,
String format)
throws com.eurodyn.qlack2.fuse.imaging.api.exception.QImageCannotBeRetrievedException
convertImage in interface com.eurodyn.qlack2.fuse.imaging.api.ImageServicecom.eurodyn.qlack2.fuse.imaging.api.exception.QImageCannotBeRetrievedExceptionpublic byte[] scaleImage(byte[] image,
float scaleFactor)
throws com.eurodyn.qlack2.fuse.imaging.api.exception.QImageCannotBeRetrievedException
scaleImage in interface com.eurodyn.qlack2.fuse.imaging.api.ImageServicecom.eurodyn.qlack2.fuse.imaging.api.exception.QImageCannotBeRetrievedExceptionpublic byte[] scaleImage(byte[] image,
float xFactor,
float yFactor)
throws com.eurodyn.qlack2.fuse.imaging.api.exception.QImageCannotBeRetrievedException
scaleImage in interface com.eurodyn.qlack2.fuse.imaging.api.ImageServicecom.eurodyn.qlack2.fuse.imaging.api.exception.QImageCannotBeRetrievedExceptionpublic byte[] scaleImage(byte[] image,
int width)
throws com.eurodyn.qlack2.fuse.imaging.api.exception.QImageCannotBeRetrievedException
scaleImage in interface com.eurodyn.qlack2.fuse.imaging.api.ImageServicecom.eurodyn.qlack2.fuse.imaging.api.exception.QImageCannotBeRetrievedExceptionpublic byte[] scaleImage(byte[] image,
int width,
int height)
throws com.eurodyn.qlack2.fuse.imaging.api.exception.QImageCannotBeRetrievedException
scaleImage in interface com.eurodyn.qlack2.fuse.imaging.api.ImageServicecom.eurodyn.qlack2.fuse.imaging.api.exception.QImageCannotBeRetrievedExceptionpublic byte[] invertImage(byte[] image)
throws com.eurodyn.qlack2.fuse.imaging.api.exception.QImageCannotBeRetrievedException
invertImage in interface com.eurodyn.qlack2.fuse.imaging.api.ImageServicecom.eurodyn.qlack2.fuse.imaging.api.exception.QImageCannotBeRetrievedExceptionpublic byte[] cropImage(byte[] image,
float xCoordinate,
float yCoordinate,
float xSize,
float ySize)
throws com.eurodyn.qlack2.fuse.imaging.api.exception.QImageCannotBeRetrievedException
cropImage in interface com.eurodyn.qlack2.fuse.imaging.api.ImageServicecom.eurodyn.qlack2.fuse.imaging.api.exception.QImageCannotBeRetrievedExceptionpublic byte[] rotateImage(byte[] image,
float xCoordinate,
float yCoordinate,
float angle)
throws com.eurodyn.qlack2.fuse.imaging.api.exception.QImageCannotBeRetrievedException
rotateImage in interface com.eurodyn.qlack2.fuse.imaging.api.ImageServicecom.eurodyn.qlack2.fuse.imaging.api.exception.QImageCannotBeRetrievedExceptionpublic byte[] adjustContrast(byte[] image,
double contrastFactor)
throws com.eurodyn.qlack2.fuse.imaging.api.exception.QImageCannotBeRetrievedException
adjustContrast in interface com.eurodyn.qlack2.fuse.imaging.api.ImageServicecom.eurodyn.qlack2.fuse.imaging.api.exception.QImageCannotBeRetrievedExceptionpublic byte[] adjustBrightness(byte[] image,
double brightnessFactor)
throws com.eurodyn.qlack2.fuse.imaging.api.exception.QImageCannotBeRetrievedException
adjustBrightness in interface com.eurodyn.qlack2.fuse.imaging.api.ImageServicecom.eurodyn.qlack2.fuse.imaging.api.exception.QImageCannotBeRetrievedExceptionpublic byte[] adjustColor(byte[] image,
int[] bits)
throws com.eurodyn.qlack2.fuse.imaging.api.exception.QImageCannotBeRetrievedException
adjustColor in interface com.eurodyn.qlack2.fuse.imaging.api.ImageServicecom.eurodyn.qlack2.fuse.imaging.api.exception.QImageCannotBeRetrievedExceptionpublic byte[] convertToGrayscale(byte[] image)
throws com.eurodyn.qlack2.fuse.imaging.api.exception.QImageCannotBeRetrievedException
convertToGrayscale in interface com.eurodyn.qlack2.fuse.imaging.api.ImageServicecom.eurodyn.qlack2.fuse.imaging.api.exception.QImageCannotBeRetrievedExceptionpublic byte[] addBorder(byte[] image,
int size,
double[] borderColor)
throws com.eurodyn.qlack2.fuse.imaging.api.exception.QImageCannotBeRetrievedException
addBorder in interface com.eurodyn.qlack2.fuse.imaging.api.ImageServicecom.eurodyn.qlack2.fuse.imaging.api.exception.QImageCannotBeRetrievedExceptionpublic byte[] overlayText(byte[] image,
com.eurodyn.qlack2.fuse.imaging.api.dto.OverlayTextDTO overlay)
throws com.eurodyn.qlack2.fuse.imaging.api.exception.QImageCannotBeRetrievedException
overlayText in interface com.eurodyn.qlack2.fuse.imaging.api.ImageServicecom.eurodyn.qlack2.fuse.imaging.api.exception.QImageCannotBeRetrievedExceptionpublic byte[] overlayImage(byte[] image,
Image overlay,
int xCoordinate,
int yCoordinate)
throws com.eurodyn.qlack2.fuse.imaging.api.exception.QImageCannotBeRetrievedException
overlayImage in interface com.eurodyn.qlack2.fuse.imaging.api.ImageServicecom.eurodyn.qlack2.fuse.imaging.api.exception.QImageCannotBeRetrievedExceptionpublic byte[] overlayImage(byte[] image,
byte[] overlay,
int xCoordinate,
int yCoordinate)
throws com.eurodyn.qlack2.fuse.imaging.api.exception.QImageCannotBeRetrievedException
overlayImage in interface com.eurodyn.qlack2.fuse.imaging.api.ImageServicecom.eurodyn.qlack2.fuse.imaging.api.exception.QImageCannotBeRetrievedExceptionCopyright © 2017. All rights reserved.