Re: Printing Problem DisplayImplJ2D

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

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:
>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?

  • 2003 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: