code: @SuppressWarnings({"WeakerAccess", "unused"})
     public Picture  renderToPicture(int widthInPixels, int heightInPixels, RenderOptions renderOptions)
     {
        Picture  picture = new Picture();
        Canvas   canvas = picture.beginRecording(widthInPixels, heightInPixels);
  
        if (renderOptions == null || renderOptions.viewPort == null) {
           renderOptions = (renderOptions == null) ? new RenderOptions() : new RenderOptions(renderOptions);
           renderOptions.viewPort(0f, 0f, (float) widthInPixels, (float) heightInPixels);
        }
  
        SVGAndroidRenderer  renderer = new SVGAndroidRenderer(canvas, this.renderDPI);
  
        renderer.renderDocument(this, renderOptions);
  
        picture.endRecording();
        return picture;
     }
docs: Renders this SVG document to a {@link Picture}.
  
  @param widthInPixels the width of the {@code Picture}
  @param heightInPixels the height of the {@code Picture}
  @param renderOptions options that describe how to render this SVG on the Canvas.
  @return a Picture object suitable for later rendering using {@link Canvas#drawPicture(Picture)}
  @since 1.3