Exemple #1
0
 public void Load(Context context, int svgResource)
 {
     if (svg != null)
     {
         return;
     }
     try {
         svg = SVG.GetFromResource(context, svgResource);
         svg.DocumentPreserveAspectRatio = PreserveAspectRatio.Unscaled;
     } catch (Exception e) {
         Log.Error(LOG_TAG, "Could not load specified SVG resource", e);
     }
 }