Measure and render the content of an SVG image

This sample shows how to measure and render the actual SVG content, which can be offset within the SVG viewport as is the case here. See comments in code for details.