简体   繁体   中英

Filling spots in am image java where data is equal to 0

Right now I have a composite code that produces and image from recorded data. I am trying to figure out a way that I can fill the spots in the image where no data was recorded (aka where it reads 0.0) with a new color. I have been experimenting a little with Graphics, but am not finding a way that I can just will these empty spots. I would post an image if I had enough points...

But I hope you understand what I am trying to say.

Like the comment suggests we really need more info. If you use a BufferedImage then you can simply set a single pixel color using this method setRGB(int x, int y, int rgb)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM