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