I'm not sure there is a way to do this through the java API, so you may need to manually do it. The first possibility that pops into my head is to create several 'masks' of the image (binary type...