I suggest you try saving the captured BufferedImage to a PNG
or other image format on disk, then load it with a separate
image viewer to ensure the image is being properly captured.
If the colors are wrong in the disk image, then it could be
a problem with VisAD. But if the colors are correct, but the
print-out is incorrect, then I'm not sure what to suggest.
None of us VisAD developers are Java printing experts (to my
My approach would be to reload the BufferedImage from the
file on disk and try printing that with the Java printing
API, and see if the colors are still wrong. If not, do some
kind of in-depth comparison between the BufferedImage
objects to determine what is different between them.
At 07:19 PM 8/25/2003, you wrote:
> I am trying to print a 2D display..but the colors are altered
> when i try to print the display. I use display.getImage() to get
> bufferedImage and then print the bufferedImage.
> Can anyone give me some idea what's going wrong here?