C2 样式调整曝光度与对比度
This commit is contained in:
parent
17d70a4327
commit
4773adbb32
|
@ -135,8 +135,8 @@ function getGrayPointList(params, size, black, white) {
|
|||
size *= 3;
|
||||
|
||||
img.src = params[0];
|
||||
let contrast = params[1];
|
||||
let exposure = params[2];
|
||||
let contrast = params[1]/100;
|
||||
let exposure = params[2]/100;
|
||||
return new Promise(resolve => {
|
||||
img.onload = () => {
|
||||
canvas.width = size;
|
||||
|
|
Loading…
Reference in New Issue