|
zengming00 / node-gd-bmp Goto Github PK
View Code? Open in Web Editor NEW轻量、高速,完全由js实现的bmp图形模块,支持win/linux
License: MIT License
轻量、高速,完全由js实现的bmp图形模块,支持win/linux
License: MIT License
|
按照你的demo,把最后的数据给前端,前端把数据给img的src,不显示图片啊
我想改一个和百度云类似的验证码,我用for循环添加网格,如下:
for (var i = 0; i <= img.h/10; i++) {
img.drawLine(0, i*10, img.w, i*10, 0xffffff);
}
for (var i = 0; i < img.w/10; i++) {
console.log(i*10,0,i*10,img.h);
img.drawLine(i*10, 0, i*10, img.h, 0xffffff);
}
出来的竖线只有一根,是怎么回事啊
但是出来的图片是这样
新手小白
效率好高,想问下生成的图片背景很嘈杂,能不能给个优化方案,好看一些。比node-gd方便好多,可是很多生成的验证码,完全看不出是什么码,背景有些乱,生成的字能不能加粗下。
如果作者能优化下生成的码背景,这个库估计不会冷门的
用户默认调用一个方法就OK。。不需要写任何代码。。
樓主大大你好,想請問根據以下程式碼,所產生的背景
let img = new BMP24(100, 40);
要如何更改背景色呀?
看了源碼,發現看不太懂 orz
感謝回答
现在接口返回就一个图片,如何把验证码上面的值一起返回?
const img = new BMP24(300, 140)
初始化报错,请问这是什么原因
默认是黑色,能不能自定义颜色啊?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.