if (!ImageHelper.bitmapImageNeedsClipping(imageTag, node))
{
double width = (Double.isNaN(node.width)) ? imageTag.getWidth() : node.width;
double height = (Double.isNaN(node.height)) ? imageTag.getHeight() : node.height;
List<ShapeRecord> shapeRecords = ShapeHelper.rectangle(0.0, 0.0, width, height);
DefineShapeTag shape = createDefineShapeTag(null, shapeRecords, new SolidColorFillNode(), null, context.getTransform());
PlaceObject3Tag po3 = PlaceObject3Tag(shape, context);
return po3;
}
else
{
double width = ((imageTag.getWidth() < node.width) || Double.isNaN(node.width)) ? imageTag.getWidth() : node.width;
double height = ((imageTag.getHeight() < node.height) || (Double.isNaN(node.height))) ? imageTag.getHeight() : node.height;
List<ShapeRecord> shapeRecords = ShapeHelper.rectangle(0.0, 0.0, width, height);
DefineShapeTag shape = createDefineShapeTag(null, shapeRecords, new SolidColorFillNode(), null, context.getTransform());
PlaceObject3Tag po3 = PlaceObject3Tag(shape, context);
return po3;
}
}
}