91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 2.96MB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2023-09-11
  • 語(yǔ)言: Java
  • 標(biāo)簽: qrcode??

資源簡(jiǎn)介

該資源為java生成二維碼,可調(diào)整二維碼大小,排版,密度,設(shè)置圖片頭像

資源截圖

代碼片段和文件信息

package?qrcode;


import?java.awt.Graphics2D;
import?java.awt.geom.AffineTransform;
import?java.awt.image.BufferedImage;

import?com.google.zxing.LuminanceSource;

public?class?BufferedImageLuminanceSource?extends?LuminanceSource?{
private?final?BufferedImage?image;
private?final?int?left;
private?final?int?top;

public?BufferedImageLuminanceSource(BufferedImage?image)?{
this(image?0?0?image.getWidth()?image.getHeight());
}

public?BufferedImageLuminanceSource(BufferedImage?image?int?left
int?top?int?width?int?height)?{
super(width?height);

int?sourceWidth?=?image.getWidth();
int?sourceHeight?=?image.getHeight();
if?(left?+?width?>?sourceWidth?||?top?+?height?>?sourceHeight)?{
throw?new?IllegalArgumentException(
“Crop?rectangle?does?not?fit?within?image?data.“);
}

for?(int?y?=?top;?y? for?(int?x?=?left;?x? if?((image.getRGB(x?y)?&?0xFF000000)?==?0)?{
image.setRGB(x?y?0xFFFFFFFF);?//?=?white
}
}
}

this.image?=?new?BufferedImage(sourceWidth?sourceHeight
BufferedImage.TYPE_BYTE_GRAY);
this.image.getGraphics().drawImage(image?0?0?null);
this.left?=?left;
this.top?=?top;
}


public?byte[]?getRow(int?y?byte[]?row)?{
if?(y?=?getHeight())?{
throw?new?IllegalArgumentException(
“Requested?row?is?outside?the?image:?“?+?y);
}
int?width?=?getWidth();
if?(row?==?null?||?row.length? row?=?new?byte[width];
}
image.getRaster().getDataElements(left?top?+?y?width?1?row);
return?row;
}


public?byte[]?getMatrix()?{
int?width?=?getWidth();
int?height?=?getHeight();
int?area?=?width?*?height;
byte[]?matrix?=?new?byte[area];
image.getRaster().getDataElements(left?top?width?height?matrix);
return?matrix;
}


public?boolean?isCropSupported()?{
return?true;
}


public?LuminanceSource?crop(int?left?int?top?int?width?int?height)?{
return?new?BufferedImageLuminanceSource(image?this.left?+?left
this.top?+?top?width?height);
}


public?boolean?isRotateSupported()?{
return?true;
}


public?LuminanceSource?rotateCounterClockwise()?{
int?sourceWidth?=?image.getWidth();
int?sourceHeight?=?image.getHeight();
AffineTransform?transform?=?new?AffineTransform(0.0?-1.0?1.0
0.0?0.0?sourceWidth);
BufferedImage?rotatedImage?=?new?BufferedImage(sourceHeight
sourceWidth?BufferedImage.TYPE_BYTE_GRAY);
Graphics2D?g?=?rotatedImage.createGraphics();
g.drawImage(image?transform?null);
g.dispose();
int?width?=?getWidth();
return?new?BufferedImageLuminanceSource(rotatedImage?top
sourceWidth?-?(left?+?width)?getHeight()?width);
}
}

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-09-29?16:57??QrCode\
?????目錄???????????0??2018-09-29?16:58??QrCode\Qrcode-2D\
?????文件?????????982??2018-09-29?16:57??QrCode\Qrcode-2D\.classpath
?????文件????????1042??2018-09-29?16:57??QrCode\Qrcode-2D\.project
?????目錄???????????0??2018-09-29?16:58??QrCode\Qrcode-2D\.settings\
?????文件?????????503??2018-09-29?16:58??QrCode\Qrcode-2D\.settings\.jsdtscope
?????文件?????????364??2018-09-29?16:58??QrCode\Qrcode-2D\.settings\org.eclipse.jdt.core.prefs
?????文件?????????479??2018-09-29?16:58??QrCode\Qrcode-2D\.settings\org.eclipse.wst.common.component
?????文件?????????345??2018-09-29?16:58??QrCode\Qrcode-2D\.settings\org.eclipse.wst.common.project.facet.core.xml
?????文件??????????49??2018-09-29?16:58??QrCode\Qrcode-2D\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件???????????6??2018-09-29?16:58??QrCode\Qrcode-2D\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????目錄???????????0??2018-09-29?16:58??QrCode\Qrcode-2D\build\
?????目錄???????????0??2018-09-29?16:58??QrCode\Qrcode-2D\build\classes\
?????目錄???????????0??2018-09-29?16:58??QrCode\Qrcode-2D\build\classes\qrcode\
?????文件????????3293??2018-09-29?16:58??QrCode\Qrcode-2D\build\classes\qrcode\BufferedImageLuminanceSource.class
?????文件????????7479??2018-09-29?16:58??QrCode\Qrcode-2D\build\classes\qrcode\QRCodeUtil.class
?????目錄???????????0??2018-09-29?16:58??QrCode\Qrcode-2D\build\classes\qrcode2way\
?????文件????????3321??2018-09-29?16:58??QrCode\Qrcode-2D\build\classes\qrcode2way\QrCodeLogoUtilAnLog(1).class
?????文件????????2657??2018-09-29?16:58??QrCode\Qrcode-2D\build\classes\qrcode2way\QrCodeUtils.class
?????目錄???????????0??2018-09-29?16:58??QrCode\Qrcode-2D\src\
?????目錄???????????0??2018-09-29?16:58??QrCode\Qrcode-2D\src\qrcode\
?????文件????????2795??2018-09-29?16:58??QrCode\Qrcode-2D\src\qrcode\BufferedImageLuminanceSource.java
?????文件????????7791??2018-09-29?16:58??QrCode\Qrcode-2D\src\qrcode\QRCodeUtil.java
?????目錄???????????0??2018-09-29?16:58??QrCode\Qrcode-2D\src\qrcode2way\
?????文件????????2980??2018-09-29?16:58??QrCode\Qrcode-2D\src\qrcode2way\QrCodeLogoUtilAnLog.java
?????文件????????2815??2018-09-29?16:58??QrCode\Qrcode-2D\src\qrcode2way\QrCodeUtils.java
?????目錄???????????0??2018-09-29?16:58??QrCode\Qrcode-2D\WebContent\
?????目錄???????????0??2018-09-29?16:58??QrCode\Qrcode-2D\WebContent\meta-INF\
?????文件??????????39??2018-09-29?16:58??QrCode\Qrcode-2D\WebContent\meta-INF\MANIFEST.MF
?????目錄???????????0??2018-09-29?16:58??QrCode\Qrcode-2D\WebContent\WEB-INF\
?????目錄???????????0??2018-09-29?16:58??QrCode\Qrcode-2D\WebContent\WEB-INF\lib\
............此處省略33個(gè)文件信息

評(píng)論

共有 條評(píng)論