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.

java.lang.IllegalArgumentException: NumComponents not in sync with COLOR_ID

Hi:

I was wondering if anyone has ever encountered the
following error when creating an image using
the JPEG Encoder classes:
java.lang.IllegalArgumentException: NumComponents not
in sync with COLOR_ID

The code that I've written runs fine of a system
running Windows 98, but on a Solaris it returns the
aforementioned error.

Here is a code snippet:
<VisAD code setting up display object>
1.) BufferedImage image = display.getImage();
2.) JPEGEncodeParam jepar
JPEGCodec.getDefaultJPEGEncodeParam(image);
<other image generation code>
2 causes the exception

Thanks for your time,
John.




__________________________________________________
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one Place.
http://shopping.yahoo.com/


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