/* */ implements RenderedImageFactory
/* */ {
/* */ public RenderedImage create(ParameterBlock args, RenderingHints hints)
/* */ {
/* 56 */ RenderedImage source = args.getRenderedSource(0);
/* 57 */ LookupTableJAI colorMap = (LookupTableJAI)args.getObjectParameter(0);
/* */
/* 59 */ KernelJAI errorKernel = (KernelJAI)args.getObjectParameter(1);
/* */
/* 62 */ if ((colorMap.getNumBands() != 1) && (colorMap.getNumBands() != 3))
/* */ {
/* 65 */ return null;
/* 66 */ }if (colorMap.getDataType() != 0)
/* */ {
/* 68 */ return null;
/* */ }
/* */
/* 72 */ SampleModel sourceSM = source.getSampleModel();
/* 73 */ if (sourceSM.getDataType() != 0)
/* */ {
/* 75 */ return null;
/* 76 */ }if (sourceSM.getNumBands() != colorMap.getNumBands())
/* */ {
/* 78 */ return null;
/* */ }
/* */
/* 82 */ ImageLayout layoutHint = RIFUtil.getImageLayoutHint(hints);