}
}
if (src == null) {
src = BitmapImageUtil.convertToGrayscale(img, effDim);
}
MonochromeBitmapConverter converter
= BitmapImageUtil.createDefaultMonochromeBitmapConverter();
converter.setHint("quality", "false");
RenderedImage red = converter.convertToMonochrome(src);
selectCurrentPattern(0, 0); //Solid black
setTransparencyMode(sourceTransparency || mask != null, true);
paintMonochromeBitmap(red, effResolution);
} else {
RenderedImage effImg = img;