public class DefaultCode2DService extends AbstractBusinessService implements Code2DService
AbstractService.SerializableDTOmodelService, sessionService, txManagertenant| Constructor and Description |
|---|
DefaultCode2DService() |
| Modifier and Type | Method and Description |
|---|---|
String |
decodeQrCode(BufferedImage content)
Decode qr code.
|
BufferedImage |
encodeDatamatrixCode(String content,
int width,
int height)
Encode a datamatrix barcode.
|
BufferedImage |
encodeQrCode(String content,
int width,
int height)
Encode qr code.
|
BufferedImage |
resize(BufferedImage content,
int newsize)
Resize.
|
BufferedImage |
resize(BufferedImage content,
int width,
int height)
Resize.
|
void |
setThumbnailGenerator(ThumbnailGenerator thumbnailGenerator)
Sets the thumbnail generator.
|
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerafterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, setTenantScope, writeReplacepublic String decodeQrCode(BufferedImage content) throws DecodeBarcodeException
decodeQrCode in interface Code2DServicecontent - the contentDecodeBarcodeExceptionCode2DService.decodeQrCode(java.awt.image.BufferedImage)public BufferedImage encodeQrCode(String content, int width, int height) throws EncodeBarcodeException
encodeQrCode in interface Code2DServicecontent - the contentwidth - the widthheight - the heightEncodeBarcodeExceptionCode2DService.encodeQrCode(java.lang.String, int, int)public BufferedImage resize(BufferedImage content, int newsize)
resize in interface Code2DServicecontent - the contentnewsize - the newsizeCode2DService.resize(java.awt.image.BufferedImage, int)public BufferedImage resize(BufferedImage content, int width, int height)
resize in interface Code2DServicecontent - the contentwidth - the widthheight - the heightCode2DService.resize(java.awt.image.BufferedImage, int, int)public BufferedImage encodeDatamatrixCode(String content, int width, int height) throws EncodeBarcodeException
Code2DServiceencodeDatamatrixCode in interface Code2DServicecontent - the content to encodewidth - the width in pixelsheight - the height in pixelsEncodeBarcodeExceptionCode2DService.encodeDatamatrixCode(java.lang.String, int, int)public void setThumbnailGenerator(ThumbnailGenerator thumbnailGenerator)
thumbnailGenerator - the thumbnailGenerator to setCopyright © 2017 SAP SE. All Rights Reserved.