You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometime the SVG document dimensions are expressed as percentages and not
returned by getDocumentWidth/Height. Nevertheless it would be useful to know at
least the aspect ratio of the document in order to select the optimum
dimensions for a bitmap to host the SVG.
I would propose to introduce a new API like this:
public float getDocumentAspectRatio()
{
if (this.rootElement == null)
return 1.0f;
Length w = this.rootElement.width;
Length h = this.rootElement.height;
return w.value/h.value;
}
Original issue reported on code.google.com by a.diba...@gmail.com on 5 Jun 2013 at 4:19
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
a.diba...@gmail.com
on 5 Jun 2013 at 4:19The text was updated successfully, but these errors were encountered: