将基础64色图像串转换为灰度图像基础64

时间:2022-11-13 12:22:03

Is it possible to get grayscale base 64 string from base 64 of coloured image in javascript or java ?Thanks.

是否有可能从javascript或java中的彩色图像的基础64获得灰度基础64字符串?谢谢。

1 个解决方案

#1


1  

Yup, it can be done in JS, and I guess it can be done in Java too :)

是的,它可以在JS中完成,我想它也可以在Java中完成:)

Example: PEN

The easiest possible way:

最简单的方法:

context.filter = 'grayscale(100%)'

#1


1  

Yup, it can be done in JS, and I guess it can be done in Java too :)

是的,它可以在JS中完成,我想它也可以在Java中完成:)

Example: PEN

The easiest possible way:

最简单的方法:

context.filter = 'grayscale(100%)'