// Get BorderExtender from renderHints if any.
BorderExtender extender = RIFUtil.getBorderExtenderHint(renderHints);
MinFilterShape maskType =
(MinFilterShape)paramBlock.getObjectParameter(0);
int maskSize = paramBlock.getIntParameter(1);
RenderedImage ri = paramBlock.getRenderedSource(0);
if(maskType.equals(MinFilterDescriptor.MIN_MASK_SQUARE)) {
return new MinFilterSquareOpImage(ri,
extender,
renderHints,
layout,
maskSize);
} else if(maskType.equals(MinFilterDescriptor.MIN_MASK_PLUS)) {
return new MinFilterPlusOpImage(ri,
extender,
renderHints,
layout,
maskSize);
} else if(maskType.equals(MinFilterDescriptor.MIN_MASK_X)) {
return new MinFilterXOpImage(ri,
extender,
renderHints,
layout,
maskSize);
} else if(maskType.equals(MinFilterDescriptor.MIN_MASK_SQUARE_SEPARABLE)) {
return new MinFilterSeparableOpImage(ri,
extender,
renderHints,
layout,
maskSize);