112113114115116117118119120121122
break; default: leftAnchor = 0; break; } newLayer.blit(layer, leftAnchor, topAnchor, layer.getWidth(), layer.getHeight(), 0, 0); return newLayer; } else { log.info("No dimension or background color specified. Skipping"); return layer; }