cy
2022-06-22 425675051e544cf29b2132615cfbf7a93dc5e51f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package cn.ksource.core.util;
 
import java.awt.image.BufferedImage;
 
import jp.sourceforge.qrcode.data.QRCodeImage;
 
public class TwoDimensionCodeImage implements QRCodeImage{
    
    BufferedImage bufImg;
    
    public TwoDimensionCodeImage(BufferedImage bufImg) {
        this.bufImg = bufImg;
    }
    
    public int getHeight() {
        return bufImg.getHeight();
    }
 
    public int getPixel(int x, int y) {
        return bufImg.getRGB(x, y);
    }
 
    public int getWidth() {
        return bufImg.getWidth();
    }
}