public class DefaultCode2DService extends java.lang.Object implements Code2DService
| Constructor and Description |
|---|
DefaultCode2DService() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
decodeQrCode(java.awt.image.BufferedImage content)
Decode qr code.
|
java.awt.image.BufferedImage |
encodeDatamatrixCode(java.lang.String content,
int width,
int height)
Encode a datamatrix barcode.
|
java.awt.image.BufferedImage |
encodeQrCode(java.lang.String content,
int width,
int height)
Encode qr code.
|
protected ThumbnailGenerator |
getThumbnailGenerator() |
java.awt.image.BufferedImage |
resize(java.awt.image.BufferedImage content,
int newsize)
Resize.
|
java.awt.image.BufferedImage |
resize(java.awt.image.BufferedImage content,
int width,
int height)
Resize.
|
void |
setThumbnailGenerator(ThumbnailGenerator thumbnailGenerator)
Sets the thumbnail generator.
|
public java.lang.String decodeQrCode(java.awt.image.BufferedImage content)
throws DecodeBarcodeException
decodeQrCode in interface Code2DServicecontent - the contentDecodeBarcodeExceptionCode2DService.decodeQrCode(java.awt.image.BufferedImage)public java.awt.image.BufferedImage encodeQrCode(java.lang.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 java.awt.image.BufferedImage resize(java.awt.image.BufferedImage content,
int newsize)
resize in interface Code2DServicecontent - the contentnewsize - the newsizeCode2DService.resize(java.awt.image.BufferedImage, int)public java.awt.image.BufferedImage resize(java.awt.image.BufferedImage content,
int width,
int height)
resize in interface Code2DServicecontent - the contentwidth - the widthheight - the heightCode2DService.resize(java.awt.image.BufferedImage, int, int)public java.awt.image.BufferedImage encodeDatamatrixCode(java.lang.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 setprotected ThumbnailGenerator getThumbnailGenerator()
Copyright © 2018 SAP SE. All Rights Reserved.