目录

Image

Class Info

public abstract class Image extends Object

广告图片。

Public Constructor Summary

Constructor Name

Image()

图片构造方法。

Public Method Summary

Qualifier and Type

Method Name and Description

Drawable

getDrawable()

获取图像的可绘制对象。

int

getHeight()

获取图片素材物理高度。

double

getScale()

获取图像比例。

Uri

getUri()

获取URI。

int

getWidth()

获取图片素材物理宽度。

Public Constructors

[h2]Image

Constructor

public Image()

图片构造方法。

Public Methods

[h2]getDrawable

Method

public abstract Drawable getDrawable()

获取图像的可绘制对象。

Returns

Type

Description

Drawable

图像的可绘制对象。

[h2]getHeight

Method

public int getHeight()

获取图片素材物理高度。

Returns

Type

Description

int

返回图片的物理高度,单位:dp。

[h2]getScale

Method

public abstract double getScale()

获取此图像的比例,它表示像素与dp的比率。

Returns

Type

Description

double

图像比例。

[h2]getUri

Method

public abstract Uri getUri()

获取图像的URI。

Returns

Type

Description

Uri

图像的URI。

[h2]getWidth

Method

public int getWidth()

获取图片素材物理宽度。

Returns

Type

Description

int

返回图片的物理宽度,单位:dp。