public class ImageSource
extends java.lang.Object
Constructor and Description |
---|
ImageSource(android.content.Context context,
java.lang.String source) |
ImageSource(android.content.Context context,
java.lang.String source,
double width,
double height) |
Modifier and Type | Method and Description |
---|---|
double |
getSize()
Get the area of this image.
|
java.lang.String |
getSource()
Get the source of this image, as it was passed to the constructor.
|
android.net.Uri |
getUri()
Get the URI for this image - can be either a parsed network URI or a resource URI.
|
boolean |
isResource()
Get whether this image source represents an Android resource or a network URI.
|
public ImageSource(android.content.Context context, java.lang.String source, double width, double height)
public ImageSource(android.content.Context context, java.lang.String source)
public java.lang.String getSource()
public android.net.Uri getUri()
public double getSize()
public boolean isResource()