iam.setImageColorEncoding(ice);
gci = new GeneralCaptureInformation ();
icm.setGeneralCaptureInformation(gci);
// Here are some pieces which are constructed once, but added only if they're needed.
cp = new ColorProfile (); // Add this to phi if needed
iccp = new IccProfile(); // Add this to cp if needed
ycbcr = new YCbCr (); // Add this to phi if needed
sfc = new SpecialFormatCharacteristics(); // Add this to bii if needed
jp2000 = new JPEG2000 (); // Add this to sfc if needed
eo = new EncodingOptions ();