Comments (9)
from quick-media.
from quick-media.
看下是不是使用了透明度的参数,上面的表现形式就是透明度不是100%的情况
from quick-media.
https://zweb.hhui.top/#/qrcode/gen
我这个也是web调用的二维码生成实例,可以对比下使用参数
from quick-media.
好的,我试试,就是仿照你的网站做的。应该是透明度问题,我看了你网站前台页面好像都是后台生成的模板,太6了
from quick-media.
https://zweb.hhui.top/#/qrcode/gen
我这个也是web调用的二维码生成实例,可以对比下使用参数
看了下你网站传的参数和源码里的参数不一样,github源码中关于透明度只有一个背景图的,默认是0.85f,
但是我没有添加背景图,所以二维码的透明度是默认的- -不知道其他人有没有遇到。
from quick-media.
https://zweb.hhui.top/#/qrcode/gen
我这个也是web调用的二维码生成实例,可以对比下使用参数看了下你网站传的参数和源码里的参数不一样,github源码中关于透明度只有一个背景图的,默认是0.85f,
但是我没有添加背景图,所以二维码的透明度是默认的- -不知道其他人有没有遇到。
我的web调用的后端对应的代码在这里,没有使用背景图的场景, 不传背景图时,不会使用到默认的.0.85f的透明度
你看下你后端调用的地方,传入的背景图是不是非空,导致当成有背景图的方式进行处理了
此外,在有背景图的时候,默认设置二维码的透明度为0.85,主要是为了能够看到二维码后面的背景图
from quick-media.
https://zweb.hhui.top/#/qrcode/gen
我这个也是web调用的二维码生成实例,可以对比下使用参数看了下你网站传的参数和源码里的参数不一样,github源码中关于透明度只有一个背景图的,默认是0.85f,
但是我没有添加背景图,所以二维码的透明度是默认的- -不知道其他人有没有遇到。我的web调用的后端对应的代码在这里,没有使用背景图的场景, 不传背景图时,不会使用到默认的.0.85f的透明度
你看下你后端调用的地方,传入的背景图是不是非空,导致当成有背景图的方式进行处理了
此外,在有背景图的时候,默认设置二维码的透明度为0.85,主要是为了能够看到二维码后面的背景图
解决了,不是背景透明色的问题,是取色板取得色值的问题。
html获取的色值不带“0xFF”,在后台加上就好了。
from quick-media.
不知道你这个取色板用的什么,传到后台直接就是完整的
“#”替换成“0xFF”
我用的html原生属性
from quick-media.
Related Issues (20)
- 文字生成图片当文章是英文时,生成的图片中英文只占了一半的空间,满半行就换行了 HOT 1
- 现在能支持android平台了吗?? HOT 11
- ColorUtil 支持html格式颜色与jdk颜色互转
- 关于css样式问题. HOT 2
- 生成二维码报错 HOT 4
- 有老哥遇到这个问题没
- 二维码插件,可控制像素点的数量
- 二维码插件-可控制码点的大小 HOT 1
- svg插件模板替换功能无法修改image标签的href属性
- https://raw.githubusercontent.com 这个会影响maven编译 HOT 1
- logo没有居中
- Maven package报错No versions available for org.apache.httpcomponents:httpclient:jar:[4.5.13,) within specified range
- BufferedImage生成动态二维码报错 HOT 2
- 二维码解析失败 HOT 1
- 二维码触发去白边的逻辑,导致二维码缩放不正确。 HOT 1
- 可以如何在生成的二维码中增加文字信息? HOT 5
- ImageLoadUtil#getImageByPath 内部 InputStream 没有关闭 HOT 3
- 循环生成二维码会有oom问题
- 支持svg输出 HOT 1
- 能否支持颜色渐变 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quick-media.