如何将一张黑色PNG图片的颜色更改为白色?

huangapple go评论111阅读模式
英文:

Please how do I change the color of a black png picture to white?

问题

我已经进行了尽可能多的研究,但仍然无法将黑色PNG图像变为白色。我尝试将我的黑色PNG图像转换为白色,但没有成功。哪个色相旋转度数会使它变为白色?

我尝试使用

filter: hue-rotate(38度);

但没有奏效。我也尝试了很多不同的数值,但都没有成功。

英文:

I've made my research as much as I should but still can't help myself to find the white color of a black PNG image. I try to convert my black image PNG to white but to no avail. What hue rotate degree would make it white?

I tried using

filter: hue-rotate(38deg);

But didn't work. Also I iterated alot of numbers to get white color but to no avail.

答案1

得分: 4

我认为问题出在你在"hue-rotate"后面有空格。至于你关于将图像从黑色变为白色的问题,我的解决方案是使用filter: invert(1)

英文:

I think the problem is you have whitespace after hue-rotate. And for your question about changing the image from black to white, my solution is use filter: invert(1).

huangapple
  • 本文由 发表于 2023年2月27日 10:43:54
  • 转载请务必保留本文链接:https://go.coder-hub.com/75576373.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定