public final class BufferedImageLuminanceSource
extends com.google.zxing.LuminanceSource
BufferedImage
图片二维码源Constructor and Description |
---|
BufferedImageLuminanceSource(BufferedImage image)
构造
|
BufferedImageLuminanceSource(BufferedImage image,
int left,
int top,
int width,
int height)
构造
|
Modifier and Type | Method and Description |
---|---|
com.google.zxing.LuminanceSource |
crop(int left,
int top,
int width,
int height) |
byte[] |
getMatrix() |
byte[] |
getRow(int y,
byte[] row) |
boolean |
isCropSupported() |
boolean |
isRotateSupported() |
com.google.zxing.LuminanceSource |
rotateCounterClockwise() |
public BufferedImageLuminanceSource(BufferedImage image)
image
- BufferedImage
public BufferedImageLuminanceSource(BufferedImage image, int left, int top, int width, int height)
image
- BufferedImage
left
- 左边间隔top
- 顶部间隔width
- 宽度height
- 高度public byte[] getRow(int y, byte[] row)
getRow
in class com.google.zxing.LuminanceSource
public byte[] getMatrix()
getMatrix
in class com.google.zxing.LuminanceSource
public boolean isCropSupported()
isCropSupported
in class com.google.zxing.LuminanceSource
public com.google.zxing.LuminanceSource crop(int left, int top, int width, int height)
crop
in class com.google.zxing.LuminanceSource
public boolean isRotateSupported()
isRotateSupported
in class com.google.zxing.LuminanceSource
public com.google.zxing.LuminanceSource rotateCounterClockwise()
rotateCounterClockwise
in class com.google.zxing.LuminanceSource
Copyright © 2024. All rights reserved.