英文:
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)
.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论