Making every pixel of an image having a specific color transparent

前端 未结 3 1423
忘了有多久
忘了有多久 2020-12-20 02:06

This question is a duplicate of this question: Making every pixel of an image having a specific color transparent

But I need a Java equivalent. And I need a image-t

3条回答
  •  渐次进展
    2020-12-20 02:42

    You can use a LookupOp with a four-component LookupTable that sets the alpha component to zero for colors that match the background. Examples may be found in Using the Java 2D LookupOp Filter Class to Process Images and Image processing with Java 2D.

提交回复
热议问题