public class SharpPicture
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
SharpDrawable |
createDrawable(android.view.View view,
int sizeInPixels)
Create a drawable from the SVG with its bounds set to
sizeInPixels such that its
aspect ratio is retained. |
android.graphics.RectF |
getBounds()
Gets the bounding rectangle for the SVG, if one was specified.
|
SharpDrawable |
getDrawable()
Create a drawable from the SVG.
|
SharpDrawable |
getDrawable(android.view.View view)
Deprecated.
Use
getDrawable() instead. |
android.graphics.RectF |
getLimits()
Gets the bounding rectangle for the SVG that was computed upon parsing.
|
android.graphics.Picture |
getPicture()
Get the parsed SVG picture data.
|
public SharpDrawable createDrawable(android.view.View view, int sizeInPixels)
sizeInPixels such that its
aspect ratio is retained. A view may be provided so that it's LayerType is set to
LAYER_TYPE_SOFTWARE.view - View that will hold this drawablesizeInPixels - maximum width or height dimension of the drawablepublic SharpDrawable getDrawable()
@Deprecated public SharpDrawable getDrawable(android.view.View view)
getDrawable() instead.view - View that will hold this drawablepublic android.graphics.Picture getPicture()
public android.graphics.RectF getBounds()
public android.graphics.RectF getLimits()