When I run it I get the following exception:
ava.lang.IllegalArgumentException: ColorConvert - Parameter value`s
class (java.awt.color.ICC_ColorSpace) is not an instance of the
parameter class (java.awt.image.ColorModel) for parameter
"colorModel".
at javax.media.jai.JAI.createNS(JAI.java:900)
at javax.media.jai.JAI.create(JAI.java:786)
at javax.media.jai.JAI.create(JAI.java:1198)
at wesslan.imaging.TestJAI.<init>(TestJAI.java:25)
at wesslan.imaging.TestJAI.main(TestJAI.java:138)
Exception in thread "main"
According to the JAI guide it is a ColorSpace that is the input param
to this method but the exception says it must be a ColorModel...
Do someone know how to get a ColorModel from a ColorSpace? I know
there is a constructor with a ColorSpace but it is not so intiutive...
Regards Weasel