NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Hi Rakesh, 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 knowledge). 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. -Curtis At 07:19 PM 8/25/2003, you wrote: >Hi everyone, > 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? > >thanks, >Rakesh
visad
archives: