- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中am.widget.zxingscanview.ZxingForegroundView.getColor()
方法的一些代码示例,展示了ZxingForegroundView.getColor()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZxingForegroundView.getColor()
方法的具体详情如下:
包路径:am.widget.zxingscanview.ZxingForegroundView
类名称:ZxingForegroundView
方法名:getColor
暂无
代码示例来源:origin: AlexMofer/ProjectX
private void drawScanPoint(Canvas canvas, int scanWidth, int scanHeight) {
if (!mShowResultPoints)
return;
final float scaleX = scanWidth / (float) getWidth();
final float scaleY = scanHeight / (float) getHeight();
final int coverX = (getWidth() - scanWidth) / 2;
final int coverY = (getHeight() - scanHeight) / 2;
ListIterator iterator = mResultPoints.listIterator();
//noinspection WhileLoopReplaceableByForEach
while (iterator.hasNext()) {
ResultPointItem point = (ResultPointItem) iterator.next();
final float offset = mInterpolator.getInterpolation(1 - point.getValue());
mPaint.setColor(getColor(mResultPointsColor, offset));
// TODO 扫描基准点问题导致XY不对
canvas.drawCircle(coverX + (int) (point.point.getX() * scaleX),
coverY + (int) (point.point.getY() * scaleY),
mResultPointsSize * offset, mPaint);
}
}
代码示例来源:origin: AlexMofer/ZxingScanView
@SuppressWarnings("all")
private void drawScanPoint(Canvas canvas, int scanWidth, int scanHeight) {
if (!mShowResultPoints)
return;
final float scaleX = scanWidth / (float) getWidth();
final float scaleY = scanHeight / (float) getHeight();
final int coverX = (getWidth() - scanWidth) / 2;
final int coverY = (getHeight() - scanHeight) / 2;
ListIterator iterator = mResultPoints.listIterator();
while (iterator.hasNext()) {
ResultPointItem point = (ResultPointItem) iterator.next();
final float offset = mInterpolator.getInterpolation(1 - point.getValue());
mPaint.setColor(getColor(mResultPointsColor, offset));
// TODO 扫描基准点问题导致XY不对
canvas.drawCircle(coverX + (int) (point.point.getX() * scaleX),
coverY + (int) (point.point.getY() * scaleY),
mResultPointsSize * offset, mPaint);
}
}
本文整理了Java中am.widget.zxingscanview.ZxingScanView.getScanHeight()方法的一些代码示例,展示了ZxingScanView.getScanHei
本文整理了Java中am.widget.zxingscanview.ZxingScanView.setFocusableInTouchMode()方法的一些代码示例,展示了ZxingScanView.
本文整理了Java中am.widget.zxingscanview.ZxingScanView.removeOnStateListener()方法的一些代码示例,展示了ZxingScanView.re
本文整理了Java中am.widget.zxingscanview.ZxingScanView.isInEditMode()方法的一些代码示例,展示了ZxingScanView.isInEditMod
本文整理了Java中am.widget.zxingscanview.ZxingScanView.drawLine()方法的一些代码示例,展示了ZxingScanView.drawLine()的具体用法
本文整理了Java中am.widget.zxingscanview.ZxingScanView.open()方法的一些代码示例,展示了ZxingScanView.open()的具体用法。这些代码示例主
本文整理了Java中am.widget.zxingscanview.ZxingScanView.getScanWidth()方法的一些代码示例,展示了ZxingScanView.getScanWidt
本文整理了Java中am.widget.zxingscanview.ZxingScanView.setScanHeight()方法的一些代码示例,展示了ZxingScanView.setScanHei
本文整理了Java中am.widget.zxingscanview.ZxingScanView.restartScanDelay()方法的一些代码示例,展示了ZxingScanView.restart
本文整理了Java中am.widget.zxingscanview.ZxingScanView.setFeedbackAudioAssetsFileName()方法的一些代码示例,展示了ZxingSc
本文整理了Java中am.widget.zxingscanview.ZxingScanView.getWidth()方法的一些代码示例,展示了ZxingScanView.getWidth()的具体用法
本文整理了Java中am.widget.zxingscanview.ZxingScanView.setScanWidth()方法的一些代码示例,展示了ZxingScanView.setScanWidt
本文整理了Java中am.widget.zxingscanview.ZxingScanView.setKeepScreenOn()方法的一些代码示例,展示了ZxingScanView.setKeepS
本文整理了Java中am.widget.zxingscanview.ZxingScanView.notifyListenerPrepareClose()方法的一些代码示例,展示了ZxingScanVi
本文整理了Java中am.widget.zxingscanview.ZxingScanView.isOpen()方法的一些代码示例,展示了ZxingScanView.isOpen()的具体用法。这些代
本文整理了Java中am.widget.zxingscanview.ZxingScanView.setFocusable()方法的一些代码示例,展示了ZxingScanView.setFocusabl
本文整理了Java中am.widget.zxingscanview.ZxingScanView.setScanCharacterSet()方法的一些代码示例,展示了ZxingScanView.setS
本文整理了Java中am.widget.zxingscanview.ZxingScanView.setFeedbackVibrateMilliseconds()方法的一些代码示例,展示了ZxingSc
本文整理了Java中am.widget.zxingscanview.ZxingScanView.initView()方法的一些代码示例,展示了ZxingScanView.initView()的具体用法
本文整理了Java中am.widget.zxingscanview.ZxingScanView.addOnStateListener()方法的一些代码示例,展示了ZxingScanView.addOn
我是一名优秀的程序员,十分优秀!