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.
我有一个应用程序需要突出显示图像上的单个像素。我不想编辑图像,我只想在图像中某些像素的顶部临时显示红点。到目前为止,我一直在使用 Canvas 绘制很多非常小的矩形来突出显示这些像素,但这存在性能问题,我想知道是否有更好的方法来做到这一点。
您可以在具有透明背景的原始图像层上放置另一个图像层,然后简单地在其上放置红色像素。