类 BufferedImageLuminanceSource
java.lang.Object
com.google.zxing.LuminanceSource
com.cdkjframework.util.files.images.code.BufferedImageLuminanceSource
public class BufferedImageLuminanceSource
extends com.google.zxing.LuminanceSource
-
构造器概要
构造器构造器说明构造函数BufferedImageLuminanceSource
(BufferedImage image, int left, int top, int width, int height) 构造函数 -
方法概要
从类继承的方法 com.google.zxing.LuminanceSource
getHeight, getWidth, invert, rotateCounterClockwise45, toString
-
构造器详细资料
-
BufferedImageLuminanceSource
构造函数- 参数:
image
- 源图片
-
BufferedImageLuminanceSource
构造函数- 参数:
image
- 源图片left
- 图片的左边界top
- 图片的上边界width
- 图片的宽度height
- 图片的高度
-
-
方法详细资料
-
getRow
public byte[] getRow(int y, byte[] row) 获取图片行- 指定者:
getRow
在类中com.google.zxing.LuminanceSource
- 参数:
y
- 该行得到row
- 用于存储行的可选数组。如果为null,将分配一个新数组
-
getMatrix
public byte[] getMatrix()从底层平台的位图中获取一行亮度数据。数值范围从- 指定者:
getMatrix
在类中com.google.zxing.LuminanceSource
- 返回:
- 亮度数据
-
isCropSupported
public boolean isCropSupported()是否支持作物- 覆盖:
isCropSupported
在类中com.google.zxing.LuminanceSource
- 返回:
- 返回布尔值
-
crop
public com.google.zxing.LuminanceSource crop(int left, int top, int width, int height) 剪裁图片- 覆盖:
crop
在类中com.google.zxing.LuminanceSource
- 参数:
left
- 左边剪裁点top
- 顶部剪裁点width
- 宽度height
- 高度- 返回:
- 返回剪裁后的图片
-
isRotateSupported
public boolean isRotateSupported()是否支持旋转- 覆盖:
isRotateSupported
在类中com.google.zxing.LuminanceSource
- 返回:
- 返回布尔值
-
rotateCounterClockwise
public com.google.zxing.LuminanceSource rotateCounterClockwise()旋转图片- 覆盖:
rotateCounterClockwise
在类中com.google.zxing.LuminanceSource
- 返回:
- 旋转后的图片
-