title: How do I draw only part of a possibly large and/or zoomed SVG?
body: <p>I would like to show a zoomable and scrollable map-like SVG in my app. The only way to do this without writing your own library etc. is to use an existing library all of which seem to render the SVG to a <code>Bitmap</code>, which can be assigned to an <code>ImageView</code>, for example.</p>
  
  <p>The underlying bitmap quickly gets very large which may result in an out-of-memory exception. How do I draw only part of a possibly large and/or zoomed SVG to a <code>Bitmap</code>? Scaling up a small bitmap looks bad and is not an option.</p>
  
  <p>I am going to answer this question myself because i have been looking for an answer for a while, found it scattered all over the web (but not here) and think that it may be helpful for others.</p>