c*****t 发帖数: 1879 | 1 I created an Image from an 16bit data file using DataBufferUShort.
Then, created a WritableRaster from DataBuffer. The color model
is IndexColorModel. The image is build from the raster and IndexColorModel.
Now the question is how to specify the specific color index from
IndexColorModel for drawing? There can be many duplicate colors
in the IndexColorModel, yet I still want to paint the image with
specific index.
I am doing this for labeling regions of images by letting users
paint the region |
|