C2 样式调整曝光度与对比度

This commit is contained in:
ciaochaos 2020-05-17 19:59:41 +08:00
parent 17d70a4327
commit 4773adbb32
1 changed files with 2 additions and 2 deletions

View File

@ -135,8 +135,8 @@ function getGrayPointList(params, size, black, white) {
size *= 3; size *= 3;
img.src = params[0]; img.src = params[0];
let contrast = params[1]; let contrast = params[1]/100;
let exposure = params[2]; let exposure = params[2]/100;
return new Promise(resolve => { return new Promise(resolve => {
img.onload = () => { img.onload = () => {
canvas.width = size; canvas.width = size;