Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道您可以以编程方式确定 .gif 的透明度颜色
有没有办法对位图做同样的事情?
现在,我通过在外边缘采样来启发式地执行此操作,但这当然不是 100% 可靠的。
我不相信 BMP 文件格式支持透明度的概念。我的理解是,如果 BMP 图像与透明度一起使用,它使用应用程序定义的颜色,如 RGB(255,0,255) 来指定透明区域。
你可以做的是: