gn.setTransform(patternContentTransform);
// take the opacity into account. opacity is implemented by a Filter
if (opacity != 1) {
Filter filter = gn.getGraphicsNodeRable(true);
filter = new ComponentTransferRable8Bit
(filter,
ConcreteComponentTransferFunction.getLinearTransfer
(opacity, 0), //alpha
ConcreteComponentTransferFunction.getIdentityTransfer(), //Red
ConcreteComponentTransferFunction.getIdentityTransfer(), //Grn