目录

Image

Class Info

public abstract class Image extends Object

Ad image.

Public Constructor Summary

Constructor Name

Image()

Constructs an Image object.

Public Method Summary

Qualifier and Type

Method Name and Description

Drawable

getDrawable()

Obtains the drawable object of an image.

int

getHeight()

Obtains the physical height of an image.

double

getScale()

Obtains the scale of an image.

Uri

getUri()

Obtains the URI of an image.

int

getWidth()

Obtains the physical width of an image.

Public Constructors

[h2]Image

Constructor

public Image()

Constructs an Image object.

Public Methods

[h2]getDrawable

Method

public abstract Drawable getDrawable()

Obtains the drawable object of an image.

Returns

Type

Description

Drawable

Drawable object of an image.

[h2]getHeight

Method

public int getHeight()

Obtains the physical height of an image.

Returns

Type

Description

int

Height of an image, in dp.

[h2]getScale

Method

public abstract double getScale()

Obtains the scale of an image, which is a ratio of pixels to dp.

Returns

Type

Description

double

Image scale.

[h2]getUri

Method

public abstract Uri getUri()

Obtains the image URI.

Returns

Type

Description

Uri

URI of an image.

[h2]getWidth

Method

public int getWidth()

Obtains the physical width of an image.

Returns

Type

Description

int

Width of an image, in dp.